Accept an invitation
View as MarkdownPOST
/v1/invitations/acceptThe signed-in account's email must match the invitation.
curl -X POST "https://api.lydie.co/v1/invitations/accept" \
-H "Authorization: Bearer $LYDIE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'Body
Response
- rolestring
One of
owneradminmemberguest
{
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"role": "owner",
"documentId": null
}Errors use one envelope for every endpoint. See Errors and versions.