EaserixDocs
DevelopersAPI referenceAuth & accountsInvitations

Accept an invitation

Full sessions only. Email invites are bound to the invited address. Idempotent for existing members (already_member true). Returns a new workspace-scoped access token; the refresh token is unchanged. The accepting user is also enrolled in the workspace's "General" team (as a member) in the same transaction, so the returned token's teams[] already carries it. Applied to existing members too, so anyone who joined before this behaviour existed is enrolled on their next accept.

View as Markdown
POST
/v1/invitations/{token}/accept
AuthorizationBearer <token>

In: header

Path Parameters

token*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/invitations/string/accept"
{  "workspace": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "slug": "string",    "name": "string",    "kind": "string",    "avatar_url": "string",    "role": "string",    "permissions": [      "string"    ],    "tools": [      "string"    ],    "teams": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "slug": "string",        "name": "string",        "my_role": "string"      }    ]  },  "access_token": "string",  "expires_at": "2019-08-24T14:15:22Z",  "already_member": true}