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

# Revoke Agent Access

> Revoke an agent's access to an MCP server.

## Authentication

Requires JWT token or Platform API key via `Authorization: Bearer <token>` header.

<ParamField path="id" type="string" required>MCP server UUID</ParamField>
<ParamField path="agentId" type="string" required>Agent UUID</ParamField>

## Example Request

```bash theme={null}
curl -X DELETE https://api.app.shinzo.ai/v1/mcp/servers/a1b2c3d4-e5f6-7890-abcd-ef1234567890/access/b2c3d4e5-f6a7-8901-bcde-f12345678901 \
  -H "Authorization: Bearer <token>"
```

## Example Response

```json theme={null}
{
  "message": "Access revoked successfully"
}
```

## Status Codes

| Code  | Description                                      |
| ----- | ------------------------------------------------ |
| `200` | Access revoked successfully                      |
| `401` | Unauthorized - invalid or missing authentication |
| `404` | MCP server or access grant not found             |
