/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_uidstringRequiredThe workspace's uid. When the route also takes X-Workspace-Slug, both must name the same workspace.
invitation_uidstringRequiredThe invitation's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The invitation was revoked. Returns it with status set to revoked.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the invitation.
emailstringRequiredThe invited email address, lower-cased.
rolestringRequiredRole the invitee gets when they accept.
One ofadmindeveloperviewer
statusstringRequiredInvitation status.
One ofpendingacceptedrevokedexpired
created_atstring (date-time)RequiredWhen the invitation was created.
expires_atstring (date-time)RequiredWhen the invitation link stops working.
invited_byobjectWho sent the invitation.
Show attributesHide attributes
uidstringRequiredThe user's ID.
usernamestringRequiredThe user's username.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | No invitation with this uid in the workspace (invitation not found). |
409 | The invitation was already accepted, revoked or marked expired (invitation is no longer pending). |
429 | Rate limit exceeded. Wait the number of seconds in the Retry-After header before retrying. |
Errors use the standard error format.