/v1/workspaces/{workspace_uid}/invitationsReturns the workspace's pending invitations, newest first. Accepted, revoked and expired invitations are not listed.
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.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The pending invitations.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item 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. |
429 | Rate limit exceeded. Wait the number of seconds in the Retry-After header before retrying. |
Errors use the standard error format.