Skip to content

List invitations

GET/v1/workspaces/{workspace_uid}/invitations

Returns 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_uidstringRequired

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

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 pending invitations.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item 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.
429Rate limit exceeded. Wait the number of seconds in the Retry-After header before retrying.

Errors use the standard error format.