Skip to content
LydieDevelopers
Menu

Accept an invitation

View as Markdown
POST/v1/invitations/accept

The signed-in account's email must match the invitation.

Request
curl -X POST "https://api.lydie.co/v1/invitations/accept" \
  -H "Authorization: Bearer $LYDIE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "string"
  }'

Body

  • tokenstringrequired· 20–200 chars

Response

200
{
  "workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
  "role": "owner",
  "documentId": null
}

Errors use one envelope for every endpoint. See Errors and versions.