Developer docs
Decline a team invitation
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.
POST
https://uetr.ai/api/v1/team/invitations/decline- MCP tool:
decline_team_invitation - Access: a key or connection with read and change access
Request body
| Field | Type | Required | Description |
|---|---|---|---|
token | string (at least 24 characters, at most 128 characters) | Yes | The token from the recipient's invitation link. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
declined | boolean | Yes |
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:
read_only_credential(403): Read-only key or connection.machine_writes_disabled(503): Changes are switched off.request_too_large(413): Request too large.unsupported_media_type(415): Body not sent as JSON.invitation_not_pending(409): Invitation no longer pending.