Accept an Invitation
Testing
POST
/calendars/{calendarId}/members/accept-invitation
calendarId
: Calendar Id to which the member belongs.token
: The invitation token.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aladia.io/v2/calendars/663a2c5effae959147ee2981/members/accept-invitation' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NmJmNzM5OTg0YzBjZDNkZDY0ODRlMzQiLCJpYXQiOjE3MjQwNjc1NzMsImV4cCI6MjMyODg2NzU3MywiYXVkIjoibG9jYWxob3N0OjMwMDAiLCJpc3MiOiJsb2NhbGhvc3Q6MzAwMCJ9.hDjAM9-mNiboeZ6idIhqjhn5JkdDji5VP9zZ5PoJMZY"
}'
Response Response Example
201 - Success
{
"id": "679b5b5cbff315b994c6979d",
"user": {
"id": "679a7bffdedc0fbbcfdd0b16",
"type": "profile"
},
"role": "calendar-participant",
"calendarId": "679b5b49bff315b994c69775",
"invited": true,
"createdAt": "Thu Jan 30 2025 13:58:36 GMT+0300 (East Africa Time)",
"updatedAt": "Thu Jan 30 2025 14:19:49 GMT+0300 (East Africa Time)",
"email": "temesgenzewude24@gmail.com",
"invitationStatus": "accepted",
"expiresAt": "2025-02-01T11:19:49.000Z"
}
Request
Path Params
calendarId
stringÂ
required
Example:
663a2c5effae959147ee2981
Header Params
apikey
stringÂ
optional
Example:
{{apikey}}
Body Params application/json
Responses
Modified at 2025-04-09 12:48:59