> ## Documentation Index
> Fetch the complete documentation index at: https://agentmail.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://agentmail.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://agentmail.manicule.dev/api/mcp.
> Every agent surface: https://agentmail.manicule.dev/.well-known/llms-manifest.json

# Authorize Inbox (/api-reference/authorize-inbox)

<!-- agent-signals: reading_time_min: 3 · est_tokens: 1584 · updated: 2026-09-29 -->
Related: [Sign Up](/api-reference/sign-up.md), [Attach Human](/api-reference/attach-human.md), [Verify](/api-reference/verify.md), [List Inboxes](/api-reference/list-inboxes.md), [Create Inbox](/api-reference/create-inbox.md), [Search Inboxes](/api-reference/search-inboxes.md)

# Authorize Inbox

`POST /v0/inboxes/{inbox_id}/authorize`

> Authorizes the AgentID sign-in a client is already waiting in, for the
> inbox in the path, and returns the ID of the pending public key it will
> activate. Read the key with Get API Key. A repeat for the same token,
> inbox, and bearer returns the same key ID.

Base URL: `https://api.agentmail.to`

Base URL: `https://x402.api.agentmail.to`

Base URL: `https://mpp.api.agentmail.to`

Base URL: `https://api.agentmail.eu`

## OpenAPI

```json
{
  "servers": [
    {
      "url": "https://api.agentmail.to",
      "description": "prod"
    },
    {
      "url": "https://x402.api.agentmail.to",
      "description": "prod-x402"
    },
    {
      "url": "https://mpp.api.agentmail.to",
      "description": "prod-mpp"
    },
    {
      "url": "https://api.agentmail.eu",
      "description": "eu-prod"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "securitySchemes": {
    "Bearer": {
      "type": "http",
      "scheme": "bearer"
    }
  },
  "parameters": [
    {
      "name": "inbox_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "description": "The ID of the inbox.",
        "title": "InboxId"
      }
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "auth_token": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$",
              "minLength": 22,
              "maxLength": 22,
              "description": "Token identifying one pending AgentID sign-in, read from the sign-in action on exactly `https://auth.agentid.com`.",
              "title": "AuthToken"
            },
            "accept_disclosure": {
              "type": "boolean",
              "description": "Accept the provider's disclosure on the agent's behalf, skipping the\nfirst-use disclosure page. Requires `provider_share_owner` when owner\nscopes are involved.",
              "title": "AcceptDisclosure"
            }
          },
          "required": [
            "auth_token"
          ],
          "description": "Authorize one pending AgentID sign-in for the inbox in the path. The\ninbox is selected by the trusted path parameter, never by an AgentID\n`login_hint`.",
          "title": "AuthorizeInboxRequest"
        }
      }
    }
  },
  "responses": {
    "202": {
      "description": "Response with status 202",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "api_key_id": {
                "type": "string",
                "description": "ID of api key.",
                "title": "ApiKeyId"
              },
              "instructions": {
                "type": "string",
                "enum": [
                  "Authorization complete. Return to browser."
                ],
                "description": "The agent's next step. Nothing further is required from the agent."
              }
            },
            "required": [
              "api_key_id",
              "instructions"
            ],
            "description": "The authorized sign-in's key ID plus the agent's next step. The key itself\nis read with Get API Key.",
            "title": "AuthorizeInboxResponse"
          }
        }
      }
    },
    "400": {
      "description": "Error response with status 400",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of error.",
                "title": "ErrorName"
              },
              "code": {
                "type": "string",
                "description": "Stable, machine-readable error code in snake_case (for example, not_found or missing_permission). Branch on this rather than the message text.",
                "title": "ErrorCode"
              },
              "message": {
                "type": "string",
                "description": "Error message.",
                "title": "ErrorMessage"
              },
              "errors": {
                "description": "Validation errors. Each entry has a path and a message identifying the invalid field."
              },
              "fix": {
                "type": "string",
                "description": "The concrete next action that resolves the error.",
                "title": "ErrorFix"
              },
              "docs": {
                "type": "string",
                "description": "Link to the error reference entry for this code.",
                "title": "ErrorDocs"
              }
            },
            "required": [
              "name",
              "errors"
            ],
            "title": "ValidationErrorResponse"
          }
        }
      }
    },
    "404": {
      "description": "Error response with status 404",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of error.",
                "title": "ErrorName"
              },
              "code": {
                "type": "string",
                "description": "Stable, machine-readable error code in snake_case (for example, not_found or missing_permission). Branch on this rather than the message text.",
                "title": "ErrorCode"
              },
              "message": {
                "type": "string",
                "description": "Error message.",
                "title": "ErrorMessage"
              },
              "fix": {
                "type": "string",
                "description": "The concrete next action that resolves the error.",
                "title": "ErrorFix"
              },
              "docs": {
                "type": "string",
                "description": "Link to the error reference entry for this code.",
                "title": "ErrorDocs"
              }
            },
            "required": [
              "name",
              "message"
            ],
            "title": "ErrorResponse"
          }
        }
      }
    }
  }
}
```
