Test And Accept
API ReferenceInvitations

Decline invitation

Decline an invitation

POST
/invitations/{token}/decline
AuthorizationBearer <token>

Clerk authentication token

In: header

Path Parameters

tokenstring

Invitation token to decline

Response Body

curl -X POST "http://localhost:3001/invitations/string/decline"
{
  "success": true,
  "error": "string"
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}