Rejects an invitation using the emailed token and email, with an optional reason, and notifies the organization. No auth. Returns 404 for an unknown organization or invitation, and 400 when the token has expired or the invitation is no longer pending. The response has no data.
POST
/organization/{orgId}/invitation/reject
curl \
--request POST 'http://api.example.com/organization/{orgId}/invitation/reject' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"token": "string",
"email": "string",
"reason": "string"
}'
Request examples
{
"token": "string",
"email": "string",
"reason": "string"
}
Response examples (200)
{
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}