headless lms

Accept an invite with the signed-in account

POST /api/organizations/invites/accept. Accept an invite with the signed-in account. Headless LMS Organizations API reference.

POST
/api/organizations/invites/accept

For any signed-in person whose email matches the invitation. Makes the invite's organization the session's active one. 400 when the token is invalid or expired, or the email does not match.

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

curl -X POST "https://example.com/api/organizations/invites/accept" \  -H "Content-Type: application/json" \  -d '{    "token": "string"  }'
{}
{  "error": "string",  "message": "string",  "requestId": "string",  "issues": [    {      "path": "string",      "message": "string"    }  ]}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}