Pidgeon Platform API
Pods, one per user of your platform. API keys, webhooks and events.
Pods, one per user of your platform. API keys, webhooks and events.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pidgeon-ai:pidgeon-ai-platform-api"
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.
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: 3.2.0
info:
title: Pidgeon Platform 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: Platform
description: Pods, one per user of your platform. API keys, webhooks and events.
paths:
/v1/pods:
get:
operationId: get_pods
summary: List pods
description: Needs `read` access. https://pidgeon.ai/docs/api-keys#pods
tags:
- Platform
responses:
'200':
description: '`{data: [pod…]}`.'
content:
application/json:
schema:
type: object
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: post_pods
summary: Make a pod
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#pods
tags:
- Platform
responses:
'201':
description: The pod.
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: a bad `name`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'409':
description: '`conflict`: the account has a pod of that name.'
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: Up to 80 characters, unique in the account.
required:
- name
/v1/pods/{id}:
patch:
operationId: patch_pods_id
summary: Rename a pod
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#pods
tags:
- Platform
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: The pod’s id.
responses:
'200':
description: The pod.
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: a bad `name`.'
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'
'409':
description: '`conflict`: the account has a pod of that name.'
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: Up to 80 characters, unique in the account.
required:
- name
delete:
operationId: delete_pods_id
summary: Remove an empty pod
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#pods
tags:
- Platform
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: The pod’s id.
responses:
'204':
description: Nothing.
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
description: '`forbidden`: the default 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 pod still has agents, domains or webhook endpoints.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
/v1/pods/{id}/move:
post:
operationId: post_pods_id_move
summary: Move an agent, address, domain, webhook endpoint or site into a pod
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#pods
tags:
- Platform
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: The pod’s id.
responses:
'200':
description: '`{type, id, pod_id}`; for an agent, `moved_inboxes`: its addresses, which moved with it.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: a bad `type` or no `id`.'
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 or thing in this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`conflict`: the address belongs to an agent: move the agent.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
description: agent, inbox, domain, webhook or site.
id:
type: string
description: The thing’s id; a site’s client id.
required:
- type
- id
/v1/events:
get:
operationId: get_events
summary: The account’s event log, newest first
description: Needs `read` access. https://pidgeon.ai/docs/webhooks#event-log
tags:
- Platform
parameters:
- name: limit
in: query
required: false
schema:
type: integer
description: 1–100, default 50.
- name: cursor
in: query
required: false
schema:
type: string
description: The last page’s `next_cursor`.
- name: type
in: query
required: false
schema:
type: string
description: One event type; the log holds more than webhooks carry.
responses:
'200':
description: '`{data, has_more, next_cursor}`: events.'
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'
/v1/keys:
get:
operationId: get_keys
summary: Your API keys, never the keys themselves
description: Needs `read` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#keys-api
tags:
- Platform
responses:
'200':
description: '`{data: [{id, name, prefix, access, pod_id, test, created_at, last_used_at}…]}`.'
content:
application/json:
schema:
type: object
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: post_keys
summary: Make an API key, never stronger than the one making it; the key is answered…
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#keys-api
tags:
- Platform
responses:
'201':
description: '`{id, key, prefix, name, access, pod_id}`.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: no `name`, or an `access` that is not a level.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Where the key will live, under 60 characters.
access:
type: string
description: What it may do; `read` when left out. At most the caller’s own.
enum:
- read
- draft
- send
- admin
pod_id:
type:
- string
- 'null'
format: uuid
description: Limit it to one pod. Left out, the whole account.
test:
type: boolean
description: 'A test key: its mail never leaves Pidgeon.'
required:
- name
/v1/keys/{id}:
delete:
operationId: delete_keys_id
summary: Revoke an API key; it stops working at once
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/api-keys#keys-api
tags:
- Platform
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: The key’s id.
responses:
'204':
description: Nothing.
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'404':
description: '`not_found`: no such key in this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
/v1/webhooks:
get:
operationId: get_webhooks
summary: Your webhook endpoints, never their secrets; a key of one pod, its pod’s
description: Needs `read` access. https://pidgeon.ai/docs/webhooks#endpoints
tags:
- Platform
responses:
'200':
description: '`{data: [{id, url, events, inbox_ids, pod_id, created_at, disabled_at}…]}`.'
content:
application/json:
schema:
type: object
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: post_webhooks
summary: Add a webhook endpoint; its secret is answered once
description: Needs `admin` access. https://pidgeon.ai/docs/webhooks#endpoints
tags:
- Platform
responses:
'201':
description: '`{id, secret}`.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: a private or non-https `url`, an event webhooks do not carry, or an inbox not of this account (or of the key’s pod).'
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:
url:
type: string
description: A public `https://` address.
events:
type: array
items:
type: string
enum:
- report.created
- reputation.changed
- operator.reputation_changed
- mandate.requested
- mandate.granted
- mandate.declined
- mandate.revoked
- message.received
- message.held
- message.released
- message.blocked
- message.quarantined
- message.sent
- message.failed
- message.scheduled
- message.delivered
- message.delayed
- message.bounced
- message.complained
- message.rejected
- message.exfiltration_blocked
- draft.created
- draft.approval_requested
- draft.approved
- draft.rejected
- thread.updated
- thread.deleted
- inbox.created
- inbox.updated
- inbox.removed
- email.domain_added
- email.domain_verified
- email.domain_broken
- email.domain_removed
- calendar.event.created
- calendar.event.updated
- calendar.event.deleted
description: The event types.
pod_id:
type:
- string
- 'null'
format: uuid
description: The pod it is in. Left out, the default pod, where it hears the whole account; in another pod, that pod’s events. A key of one pod adds to its own pod only, and its endpoint hears that pod only.
inbox_ids:
type:
- array
- 'null'
items:
type: string
format: uuid
description: Hear only these inboxes’ events (of its pod, for a key of one pod), and none that are not about an inbox.
required:
- url
- events
/v1/webhooks/{id}:
delete:
operationId: delete_webhooks_id
summary: Remove a webhook endpoint; a key of one pod, its pod’s only
description: Needs `admin` access. https://pidgeon.ai/docs/webhooks#endpoints
tags:
- Platform
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: The webhook’s id.
responses:
'204':
description: Nothing.
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'404':
description: '`not_found`: no such webhook in this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
/v1/openapi.json:
get:
operationId: get_openapi_json
summary: This API as an OpenAPI 3.1 document. No key needed
description: No key needed. https://pidgeon.ai/docs/api#openapi
tags:
- Platform
security: []
responses:
'200':
description: The document.
content:
application/json:
schema:
type: object
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