---
title: "Cancel a pending team invite so it can no longer be accepted. It waits for the workspace owner to approve it in RankControl; the answer is an approval link. Invitation ids come from get_team."
method: POST
path: "/api/v1/team/revoke"
---

# Cancel a pending team invite so it can no longer be accepted. It waits for the workspace owner to approve it in RankControl; the answer is an approval link. Invitation ids come from get_team.

`POST /api/v1/team/revoke`

## Request

- Base URL: `https://api.rctrl.com`
- URL: `https://api.rctrl.com/api/v1/team/revoke`
- Auth: HTTP bearer

Requires the `manage:org` scope.

## Request body

- object
  - `invitationId` string, required: Pending invite id from get_team

## Response `200`

Success; the payload is wrapped in a data envelope

- object
  - `data` unknown

## Other responses

- `400`: Bad input
- `401`: Missing or invalid API key
- `403`: API key lacks the required scope
- `404`: Not found in this workspace
- `429`: Rate limited; the body includes a retryAfterMs hint

---

[API](https://skmtc.dev/rctrl/apis/rankcontrol-api.md) · [All operations](https://skmtc.dev/rctrl/apis/rankcontrol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rctrl/apis/rankcontrol-api/revisions/98ecd236394a?raw)
