---
title: "Revoke an invitation"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke an invitation

Path: CloudRaker Workspace API › Organization Settings

`DELETE /users/invitations/{invitationId}`

Revokes a pending invitation by `:invitationId` after confirming it belongs to the caller's organization. Authorization: organization administrators only. Returns 204 on success; 404 if it does not exist or is not in this org.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `invitationId` (`revokeInvitation.path.invitationId`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.cloudraker.com/users/invitations/<invitationId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/users/invitations/<invitationId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/users/invitations/<invitationId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

Invitation revoked (empty body).


Source: https://docs.cloudraker.com/workspace/api/organization-settings/revoke-invitation/index.md
