SyncPilledDocs

Accept an invitation and join the account

POST
/v1/admin/invitations/accept

By the link's token, or by id once the address is verified. Works for someone who belongs to no account yet.

Authorization

AuthorizationBearer <token>

A management key, made in the console. It acts as an admin of its account.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/admin/invitations/accept" \  -H "Content-Type: application/json" \  -d '{    "token": "string"  }'
{  "mode": "cloudflare_access",  "via": "session",  "user": {    "email": "string",    "name": "string",    "email_verified": true  },  "email": "string",  "organization": {    "id": "string",    "name": "string"  },  "role": "owner",  "organizations": [    {      "id": "string",      "name": "string",      "role": "owner"    }  ]}