Skip to main content

Revoke invitation

DELETE /api/organizations/{org_id}/members/invite/{invitation_id}

Revoke a pending invitation, invalidating its token and invite link. Gated on the invite permission (admins/owners), same as creating and listing invitations. Raises: HTTPException 404: Unknown invitation, or it belongs to another org HTTPException 409: Invitation is not pending (already accepted/expired)

Parameters

NameInTypeRequiredDescription
org_idpath`stringnull`yes
invitation_idpathintegeryes
X-Org-Idheader`stringnull`no

Responses

StatusDescription
204Successful Response
422Validation Error

Operation ID: revoke_invitation_api_organizations__org_id__members_invite__invitation_id__delete