# Revoke Invitation

> Revoke an invitation; the emailed link stops working.

Requires an API key with the `write` scope.

N e The call writes an `audit.workspace_invite.revoked` entry.

## Path Parameters

<ParamField path="invite_id" type="string" required>
  The invitation identifier.
</ParamField>

## Response

Returns `{ "data": { "id", "revoked": true } }`.

<RequestExample>
```bash cURL
curl -X DELETE "https://api.foxreach.io/api/v1/workspace/invites/wsi_abc123" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
client.workspace.revoke_invite("wsi_abc123")
```

```typescript TypeScript SDK
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
await client.workspace.revokeInvite("wsi_abc123");
```

</RequestExample>

<ResponseExample>
```json
{ "data": { "id": "wsi_abc123", "revoked": true } }
```
</ResponseExample>

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | The key lacks the `admin` or `write` scope, or its creator lacks the required role |
| `404` | Invitation not found, or already accepted |

## Rate Limit

- **120 requests per minute, shared by every `write` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`write`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](/rate-limiting).
