/v1/workspace-invitations/{token}Returns an invitation addressed to you, with the workspace it is for, so you can review it before accepting it. Use the token from the invitation email.
Needs a verified account whose email matches the invited address. No X-Workspace-Slug
header is needed, since you may not belong to any workspace yet. If the invitation has
expired, it is marked expired and 409 is returned. Responses are sent with
Cache-Control: no-store.
Authentication
Send your API key as Authorization: Bearer <token>.
Path parameters
tokenstringRequiredThe secret token from the invitation email link (/invitations/<token>).
Response
The invitation.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the invitation.
emailstringRequiredThe invited email address.
rolestringRequiredRole you get when you accept.
One ofadmindeveloperviewer
statusstringRequiredAlways pending. Other states return 409.
One ofpending
expires_atstring (date-time)RequiredWhen the invitation expires.
workspaceobjectRequiredThe workspace you are invited to. role and permissions are omitted and member_count is 0.
Show attributesHide attributes
uidstringRequiredUnique identifier of the workspace.
namestringRequiredDisplay name.
slugstringRequiredSlug to send in X-Workspace-Slug.
descriptionstringRequiredFree-text description. Empty when not set.
is_defaultbooleanRequiredWhether this is the owner's default workspace.
rolestringYour role in the workspace. Omitted when not known in this context.
One ofowneradmindeveloperviewer
permissionsarray of stringsThe permissions your role grants. Omitted when not known in this context.
One ofworkspace.readworkspace.manageresource.writeruntime.connectsecrets.readsecrets.managemembers.manageaudit.readbilling.readbilling.manageworkspace.transferworkspace.delete
member_countintegerRequiredNumber of active members. Only filled in on your profile. Other responses return 0.
invited_byobjectWho sent the invitation. Omitted when unknown.
Show attributesHide attributes
uidstringRequiredThe user's ID.
usernamestringRequiredThe user's username.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | Your email is not verified (action: verify_email), or the invitation was sent to a different address (this invitation was sent to a different email address). |
404 | The token does not match any invitation (invitation not found). |
409 | invitation is no longer pending (already accepted, revoked or expired) or invitation has expired. |
429 | Rate limit exceeded. Wait the number of seconds in the Retry-After header before retrying. |
Errors use the standard error format.