# API Keys

> MCP tools for the API Keys module. See the [API Keys module docs](/docs/modules/api-keys) for permissions and data model.

# API Keys

MCP tools for the API Keys module. See the [API Keys module docs](/docs/modules/api-keys) for permissions and data model.

### `list-api-keys`

List API keys

#### Arguments

| Argument | Type | Required | Description |
| -------- | ---- | -------- | ----------- |
| `limit` | `number` | no | Maximum number of results to return |
| `offset` | `number` | no | Number of results to skip |

### `create-api-key`

Create an API key

#### Arguments

| Argument | Type | Required | Description |
| -------- | ---- | -------- | ----------- |
| `name` | `string` | yes | Key name for identification |
| `project_id` | `string \| null` | no | Optional project ID to scope the key to. Omit or set null to create an unscoped key that spans projects. |
| `policy_ids` | `array<string>` | no | Optional list of policy IDs to attach. Key permissions become the intersection of user policies and these policies. |

### `get-api-key`

Get an API key

#### Arguments

| Argument | Type | Required | Description |
| -------- | ---- | -------- | ----------- |
| `api_key_id` | `string` | yes | API key public ID (key_ prefix) |

### `update-api-key`

Update an API key

#### Arguments

| Argument | Type | Required | Description |
| -------- | ---- | -------- | ----------- |
| `api_key_id` | `string` | yes | API key public ID (key_ prefix) |
| `name` | `string` | no | — |
| `project_id` | `string \| null` | no | Re-scope the key to a different project, or set null to clear the scope (unscoped key). Omit to leave the scope unchanged. |
| `policy_ids` | `array<string>` | no | Replace the key's policy list (empty array removes all) |

### `delete-api-key`

Delete an API key

#### Arguments

| Argument | Type | Required | Description |
| -------- | ---- | -------- | ----------- |
| `api_key_id` | `string` | yes | API key public ID (key_ prefix) |
