Skip to content

Revoke an invitation

DELETE/v1/workspaces/{workspace_uid}/invitations/{invitation_uid}

Revokes a pending invitation. Its link stops working straight away.

Requires the owner or admin role.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

workspace_uidstringRequired

The workspace's uid. When the route also takes X-Workspace-Slug, both must name the same workspace.

invitation_uidstringRequired

The invitation's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The invitation was revoked. Returns it with status set to revoked.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
uidstringRequired

Unique identifier of the invitation.

emailstringRequired

The invited email address, lower-cased.

rolestringRequired

Role the invitee gets when they accept.

One ofadmindeveloperviewer

statusstringRequired

Invitation status.

One ofpendingacceptedrevokedexpired

created_atstring (date-time)Required

When the invitation was created.

expires_atstring (date-time)Required

When the invitation link stops working.

invited_byobject

Who sent the invitation.

Show attributes
uidstringRequired

The user's ID.

usernamestringRequired

The user's username.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404No invitation with this uid in the workspace (invitation not found).
409The invitation was already accepted, revoked or marked expired (invitation is no longer pending).
429Rate limit exceeded. Wait the number of seconds in the Retry-After header before retrying.

Errors use the standard error format.