---
title: "MCP tools: API keys"
description: "The tools of the MCP server under API keys. Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API."
url: https://doorman.fyi/docs/mcp/tools/api-keys
markdown: https://doorman.fyi/docs/mcp/tools/api-keys.md
area: "SDKs and tools"
section: "MCP server"
---

# MCP tools: API keys

The tools of the MCP server under API keys. Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.

Source: https://doorman.fyi/docs/mcp/tools/api-keys

## inboxes_keys_create

Tool:
```text
inboxes_keys_create
```

Operation [`inboxes.keys.create`](https://doorman.fyi/docs/reference/api-keys.md#inboxes-keys-create): `POST /v1/inboxes/{inboxId}/api-keys`

A key that reads and operates exactly one inbox, including its stream and sending, and gets 403 on inbox, key and webhook management. The token is returned once; 20 may be active per inbox. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something.
- One-time secret: The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `name` (string, optional): A label, at most 100 characters. Example: `Orchestrator`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_keys_create",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "name": "Orchestrator"
  }
}
```

## inboxes_keys_list

Tool:
```text
inboxes_keys_list
```

Operation [`inboxes.keys.list`](https://doorman.fyi/docs/reference/api-keys.md#inboxes-keys-list): `GET /v1/inboxes/{inboxId}/api-keys`

The inbox's active keys, oldest first. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_keys_list",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_keys_get

Tool:
```text
inboxes_keys_get
```

Operation [`inboxes.keys.get`](https://doorman.fyi/docs/reference/api-keys.md#inboxes-keys-get): `GET /v1/inboxes/{inboxId}/api-keys/{keyId}`

One active key of the inbox, without its token. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `keyId` (string): The key. Example: `key_01jc5c0z9y8x7w6v5t4t3s2r1q`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `keyId` | the path parameter `keyId` |

Example call:
```json
{
  "name": "inboxes_keys_get",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "keyId": "key_01jc5c0z9y8x7w6v5t4t3s2r1q"
  }
}
```

## inboxes_keys_revoke

Tool:
```text
inboxes_keys_revoke
```

Operation [`inboxes.keys.revoke`](https://doorman.fyi/docs/reference/api-keys.md#inboxes-keys-revoke): `DELETE /v1/inboxes/{inboxId}/api-keys/{keyId}`

The key stops authenticating on its next request and the stream connections it opened are closed with 4001. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `keyId` (string): The key. Example: `key_01jc5c0z9y8x7w6v5t4t3s2r1q`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `keyId` | the path parameter `keyId` |

Example call:
```json
{
  "name": "inboxes_keys_revoke",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "keyId": "key_01jc5c0z9y8x7w6v5t4t3s2r1q"
  }
}
```
