Pidgeon Passport API

Your agents and their keys.

GitHub OpenAPI

Operations 12

GET /v1/agents List agents #
POST /v1/agents Register an agent #
GET /v1/agents/{id} One agent, its keys and its operator’s reputation #
PATCH /v1/agents/{id} Rename an agent, or change what it does #
DELETE /v1/agents/{id} Revoke an agent and every key it has. It cannot be undone #
POST /v1/agents/{id}/keys Publish an agent’s public key, in a request signed with it #
DELETE /v1/agents/{id}/keys/{kid} Revoke one of an agent’s keys #
GET /v1/domains Your domains, waiting and proved; a key of one pod, its pod’s #
POST /v1/domains Add a domain; answers the TXT record that proves it #
GET /v1/domains/{id} One domain: whether it is proved, its mail, and every DNS record to publish #
DELETE /v1/domains/{id} Remove a domain; a proved one’s mail is turned off first #
POST /v1/domains/{id}/verify Look for the domain’s `_pidgeon` TXT record now #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pidgeon-ai:pidgeon-ai-passport-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pidgeon-ai-passport-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pidgeon Passport API
  version: '1'
  description: 'Email inboxes for AI agents. Give each agent its own address on @pidgeon.email or your domain, or give every user of your platform inboxes of their own, a pod each. Plus Sign in with Pidgeon. Every `/v1` call but this document takes `Authorization: Bearer pgn_…`. Lists answer `{data, has_more, next_cursor}`; pass `next_cursor` back as `cursor`.'
servers:
- url: https://pidgeon.ai
security:
- bearer: []
tags:
- name: Passport
  description: Your agents and their keys.
paths:
  /v1/agents:
    get:
      operationId: get_agents
      summary: List agents
      description: Needs `read` access. https://pidgeon.ai/docs/signing-requests#register-endpoint
      tags:
      - Passport
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          description: 1–100, default 50.
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          format: uuid
          description: The last page’s `next_cursor`.
      responses:
        '200':
          description: '`{data, has_more, next_cursor}`: agents.'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: a bad `cursor`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      operationId: post_agents
      summary: Register an agent
      description: Needs `admin` access. https://pidgeon.ai/docs/signing-requests#register-endpoint
      tags:
      - Passport
      responses:
        '201':
          description: The agent, with its `directory`.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: a bad `name`, `purpose` or `pod_id`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          description: '`forbidden`: a key of one pod naming another pod. Or `forbidden`: the key has too little access, or the wrong reach.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: no such pod in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 1 to 80 characters.
                purpose:
                  type: string
                  description: What it does, up to 280 characters.
                pod_id:
                  type: string
                  format: uuid
                  description: The pod to register it in.
              required:
              - name
  /v1/agents/{id}:
    get:
      operationId: get_agents_id
      summary: One agent, its keys and its operator’s reputation
      description: Needs `read` access. https://pidgeon.ai/docs/signing-requests#agent-endpoint
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The agent’s id.
      responses:
        '200':
          description: The agent, its `keys`, `directory` and `reputation`.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such agent in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    patch:
      operationId: patch_agents_id
      summary: Rename an agent, or change what it does
      description: Needs `admin` access. https://pidgeon.ai/docs/signing-requests#manage-endpoint
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The agent’s id.
      responses:
        '200':
          description: The agent.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: neither `name` nor `purpose`, or one out of bounds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such agent in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 1 to 80 characters.
                purpose:
                  type: string
                  description: What it does, up to 280 characters.
              required: []
    delete:
      operationId: delete_agents_id
      summary: Revoke an agent and every key it has. It cannot be undone
      description: Needs `admin` access. https://pidgeon.ai/docs/signing-requests#manage-endpoint
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The agent’s id.
      responses:
        '204':
          description: Nothing.
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such agent in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/agents/{id}/keys:
    post:
      operationId: post_agents_id_keys
      summary: Publish an agent’s public key, in a request signed with it
      description: Needs `admin` access. https://pidgeon.ai/docs/signing-requests#publish-endpoint
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The agent’s id.
      responses:
        '201':
          description: '`{kid}`.'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: no `public_jwk`, or not an Ed25519 public key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          description: '`forbidden`: not signed with this key, or the agent is revoked. Or `forbidden`: the key has too little access, or the wrong reach.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: no such agent in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`conflict`: this key is already published.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                public_jwk:
                  type: object
                  description: The Ed25519 public JWK, with no private part.
              required:
              - public_jwk
  /v1/agents/{id}/keys/{kid}:
    delete:
      operationId: delete_agents_id_keys_kid
      summary: Revoke one of an agent’s keys
      description: Needs `admin` access. https://pidgeon.ai/docs/signing-requests#manage-endpoint
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The agent’s id.
      - name: kid
        in: path
        required: true
        schema:
          type: string
          description: 'The key’s id: its JWK thumbprint.'
      responses:
        '204':
          description: Nothing.
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such agent or key in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/domains:
    get:
      operationId: get_domains
      summary: Your domains, waiting and proved; a key of one pod, its pod’s
      description: Needs `read` access. https://pidgeon.ai/docs/passport#domains-api
      tags:
      - Passport
      responses:
        '200':
          description: '`{data: [domain…]}`.'
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      operationId: post_domains
      summary: Add a domain; answers the TXT record that proves it
      description: Needs `admin` access. https://pidgeon.ai/docs/passport#domains-api
      tags:
      - Passport
      responses:
        '201':
          description: The domain, with `records` to publish.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: not a domain, or a name reserved for testing.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          description: '`forbidden`: a key of one pod naming another pod. Or `forbidden`: the key has too little access, or the wrong reach.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: no such pod in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`conflict`: the account already has the domain.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
                  description: The domain, such as `acme.com`. A pasted URL or `www.` is trimmed to it.
                pod_id:
                  type:
                  - string
                  - 'null'
                  format: uuid
                  description: The pod it goes in. Left out, the key’s pod, or the default pod for a key of the whole account. A key of one pod names its own pod only.
              required:
              - domain
  /v1/domains/{id}:
    get:
      operationId: get_domains_id
      summary: 'One domain: whether it is proved, its mail, and every DNS record to publish'
      description: Needs `read` access. https://pidgeon.ai/docs/passport#domains-api
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The domain’s id.
      responses:
        '200':
          description: The domain.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such domain in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    delete:
      operationId: delete_domains_id
      summary: Remove a domain; a proved one’s mail is turned off first
      description: Needs `admin` access. https://pidgeon.ai/docs/passport#domains-api
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The domain’s id.
      responses:
        '204':
          description: Nothing.
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such domain in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`conflict`: an inbox is still at the domain.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/domains/{id}/verify:
    post:
      operationId: post_domains_id_verify
      summary: Look for the domain’s `_pidgeon` TXT record now
      description: Needs `read` access. https://pidgeon.ai/docs/passport#domains-api
      tags:
      - Passport
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The domain’s id.
      responses:
        '200':
          description: The domain; `verified` is true once the record is found.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such domain in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`conflict`: another account has already proved the domain.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    Unauthenticated:
      description: '`unauthenticated`: no key, or a revoked one.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: '`forbidden`: the key has too little access, or the wrong reach.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: '`rate_limited`: over 600 requests a minute; `Retry-After` says when.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: 'Stable, for code: `invalid`, `not_found`…'
            message:
              type: string
              description: What went wrong, for a person.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (`pgn_…`, or `pgn_test_…`) or an OAuth access token (`pgn_oat_…`).
externalDocs:
  url: https://pidgeon.ai/docs/api