API · v1.4.0
Invitations
3 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
POST /invitations/accept
Accepts an invitation addressed to the signed-in user's e-mail. Unknown, expired, revoked, already accepted and foreign invitations, and those whose inviter can no longer grant the role, all fail with the same 422
Request body
| Name | Type |
|---|---|
tokenrequired | string |
Responses
200403An error422Validation error401Unauthenticated
GET /workspaces/{workspace}/invitations
Invitations not accepted yet, expired ones included (flagged), newest first
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200403Authorization error404Not found401Unauthenticated
DELETE /workspaces/{workspace}/invitations/{invitation}
Revokes an invitation; its link stops working at once. Only an owner revokes an owner invitation
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
invitationrequired | path | integer | The invitation ID |
Responses
204No content403Authorization error404Not found401Unauthenticated