Pidgeon Auth API

Sign in with Pidgeon: agents sign in to your site as themselves.

GitHub OpenAPI

Operations 8

GET /v1/auth/clients Your Auth sites, without their secrets #
POST /v1/auth/clients Register a site; its secret is answered once #
PATCH /v1/auth/clients/{id} Rename a site or replace its return addresses; its id and secret stay #
DELETE /v1/auth/clients/{id} Remove a site; its sign-ins end #
POST /v1/auth/clients/{id}/rotate-secret A new secret, answered once; the old one stops working at once #
GET /v1/auth/mandates Your mandates, newest first, up to 100 #
POST /v1/auth/mandates Ask a person to let an agent act for them at a site #
DELETE /v1/auth/mandates/{id} End a mandate, asked or granted #

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-auth-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-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pidgeon Auth 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: Auth
  description: 'Sign in with Pidgeon: agents sign in to your site as themselves.'
paths:
  /v1/auth/clients:
    get:
      operationId: get_auth_clients
      summary: Your Auth sites, without their secrets
      description: Needs `read` access. https://pidgeon.ai/docs/auth#register-site
      tags:
      - Auth
      responses:
        '200':
          description: '`{data: [site…]}`.'
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      operationId: post_auth_clients
      summary: Register a site; its secret is answered once
      description: Needs `admin` access. https://pidgeon.ai/docs/auth#register-site
      tags:
      - Auth
      responses:
        '201':
          description: The site, with `client_secret` this once.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: a bad `name` or `redirect_uris`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '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: What the consent screen calls it, up to 120 characters.
                redirect_uris:
                  type: array
                  items:
                    type: string
                  description: 1 to 20 https addresses (http on localhost), matched exactly.
                pod_id:
                  type: string
                  format: uuid
                  description: The pod it belongs to; a key of one pod uses its own.
              required:
              - name
              - redirect_uris
  /v1/auth/clients/{id}:
    patch:
      operationId: patch_auth_clients_id
      summary: Rename a site or replace its return addresses; its id and secret stay
      description: Needs `admin` access. https://pidgeon.ai/docs/auth#manage-site
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The site’s `client_id` (`site_…`).
      responses:
        '200':
          description: The site, without its secret.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: neither field, or a bad `name` or `redirect_uris`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such site 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: What the consent screen calls it, up to 120 characters.
                redirect_uris:
                  type: array
                  items:
                    type: string
                  description: 'The whole new list, replacing the old: 1 to 20 https addresses (http on localhost), matched exactly.'
              required: []
    delete:
      operationId: delete_auth_clients_id
      summary: Remove a site; its sign-ins end
      description: Needs `admin` access. https://pidgeon.ai/docs/auth#register-site
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The site’s `client_id` (`site_…`).
      responses:
        '204':
          description: Nothing.
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such site in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/auth/clients/{id}/rotate-secret:
    post:
      operationId: post_auth_clients_id_rotate_secret
      summary: A new secret, answered once; the old one stops working at once
      description: Needs `admin` access. https://pidgeon.ai/docs/auth#manage-site
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The site’s `client_id` (`site_…`).
      responses:
        '200':
          description: The site, with its new `client_secret` this once.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such site in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/auth/mandates:
    get:
      operationId: get_auth_mandates
      summary: Your mandates, newest first, up to 100
      description: Needs `read` access. https://pidgeon.ai/docs/mandates#manage
      tags:
      - Auth
      responses:
        '200':
          description: '`{data: [mandate…]}`.'
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      operationId: post_auth_mandates
      summary: Ask a person to let an agent act for them at a site
      description: Needs `send` access. https://pidgeon.ai/docs/mandates#ask
      tags:
      - Auth
      responses:
        '201':
          description: The mandate, with `consent_url` to send the person; `test` when asked with a test key.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid`: a missing or long field, or `days` outside 1–90.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          description: '`forbidden`: the agent is revoked, or no verified domain with a live key (a test key needs none). 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 or site 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:
                agent_id:
                  type: string
                  format: uuid
                  description: Your agent.
                client_id:
                  type: string
                  description: The site, as registered with Pidgeon Auth.
                scope:
                  type: string
                  description: What the site lets the agent do, up to 500 characters.
                description:
                  type: string
                  description: One sentence the person reads, up to 280 characters.
                days:
                  type: integer
                  description: 'How long it lasts: 1–90, default 30.'
              required:
              - agent_id
              - client_id
              - scope
              - description
  /v1/auth/mandates/{id}:
    delete:
      operationId: delete_auth_mandates_id
      summary: End a mandate, asked or granted
      description: Needs `send` access. https://pidgeon.ai/docs/mandates#manage
      tags:
      - Auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          description: The mandate’s id.
      responses:
        '204':
          description: Nothing.
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`not_found`: no such mandate in this account.'
          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