curl --request POST \
--url https://apix.us.amity.co/api/v1/invitations/{invitationId}/accept \
--header 'Authorization: Bearer <token>'{
"success": true
}Accepts a pending invitation. This will change the invitation status to “approved” and perform the associated action (e.g., adding the user to a community).
curl --request POST \
--url https://apix.us.amity.co/api/v1/invitations/{invitationId}/accept \
--header 'Authorization: Bearer <token>'{
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the invitation (MongoDB ObjectId)
24Accept invitation response
Whether the invitation was successfully accepted
true