All pages

Developer docs

Decline a team invitation

View as Markdown

Decline an invitation addressed to the user behind this key or connection, using the token from their invitation link. Releases that pending seat without joining the team. It cannot decline another person's invitation or remove an active membership. Available on every plan.

POSThttps://uetr.ai/api/v1/team/invitations/decline
  • MCP tool: decline_team_invitation
  • Access: a key or connection with read and change access

Request body

FieldTypeRequiredDescription
tokenstring (at least 24 characters, at most 128 characters)YesThe token from the recipient's invitation link.

Response

FieldTypeRequiredDescription
declinedbooleanYes

Example

curl -X POST "https://uetr.ai/api/v1/team/invitations/decline" \
  -H "Authorization: Bearer $UETR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token":"6f1c2b9e-3d4a-4e8f-9b7c-1a2d3e4f5a6b.example-token"}'

The answer:

{
  "declined": true
}

Refusals

Besides the access refusals every call can meet, this call can answer: