/v1/workspace-invitations/{token}/acceptAccepts an invitation addressed to you and adds you to the workspace with the invited role. The inviter is emailed that you joined. No request body is needed.
Needs a verified account whose email matches the invited address. No X-Workspace-Slug
header is needed. Use the returned slug in X-Workspace-Slug for requests in the
workspace you joined. 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
You joined the workspace. Returns it with your new role and permissions. member_count is always 0 in this response.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow 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.
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, invitation has expired, or you are already a member of this workspace. |
429 | Rate limit exceeded. Wait the number of seconds in the Retry-After header before retrying. |
Errors use the standard error format.