Pidgeon Bouncer API
The Bouncer API from Pidgeon — 5 operation(s) for bouncer.
The Bouncer API from Pidgeon — 5 operation(s) for bouncer.
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-bouncer-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 Bouncer 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: Bouncer
paths:
/v1/verify:
post:
operationId: post_verify
summary: Who runs the agent behind a request
description: Needs `read` access. https://pidgeon.ai/docs/bouncer#request
tags:
- Bouncer
responses:
'200':
description: 'What the check found (`result`: `verified`, `signed_known`, `signed_unknown`, `declared` or `refused`). `valid` is true for `verified` only, with the agent, its operator with its verified `domains`, their reputation, and `replay_protected`. The two signed results name the outside directory the key came from (`signature_agent`: `directory`, `host`, and the recognised `operator` or null), with `reason` `unknown_key`. `declared` is an unsigned request whose User-Agent names an agent on Pidgeon’s list: `declared` has its `name`, `operator`, `purpose` (`user`, `search`, `training`) and `ip` (`confirmed` or `mismatch` against the vendor’s published addresses, or `unchecked`), with `reason` `unsigned`. A refusal says why (`reason`: `unsigned`, `unknown_key`, `expired`, `invalid`, `revoked`, `replayed`). Every answer carries what your site rule for the `place` decided: `place`, `decision` (`allow`, `limit`, `block`, or `watch` while the place only watches, with `would`) and `rule`, one line saying why. Every result but `declared` and `refused` carries `verdict`: the same, signed by Pidgeon for five minutes, for a sign-up hook.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: no `request`, it cannot be read, `ip` is not an address, or `place` is not a place.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'402':
description: '`payment_required`: the month’s free verifications are used.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
request:
type: object
description: The agent’s `method`, `url` and `headers`, as you received them.
ip:
type: string
description: The agent’s address as your server saw it, written into the `verdict` so a hook can hold it to that address, and checked against the vendor’s published addresses for a `declared` agent.
place:
type: string
description: Where on your site the agent is, so your site rule for that place decides. `other` when left out.
enum:
- signup
- checkout
- api
- other
required:
- request
/v1/visits:
post:
operationId: post_visits
summary: Record agents that only name themselves, in a batch
description: Needs `read` access. https://pidgeon.ai/docs/bouncer#visits
tags:
- Bouncer
responses:
'200':
description: '`recorded`: the visits whose User-Agent names an agent on the declared list, stored as `declared` checks; `skipped`: the rest, which are not stored. Not counted toward the month’s verifications. Signed requests go to `/v1/verify`.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: no `visits`, more than 100, or one cannot be read (the message names it).'
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:
visits:
type: array
items:
type: object
description: 'Up to 100 visits, each `{ method, url, user_agent, ip?, place?, at? }`: the request’s method, the URL the agent called (the query string is never stored; leave it out), its User-Agent, the visitor’s address (checked against the vendor’s published ranges, not stored), where on your site it was (`signup`, `checkout`, `api`, `other`), and when (ISO 8601, within the last hour; now otherwise).'
required:
- visits
/v1/verify/verdict:
post:
operationId: post_verify_verdict
summary: Check and spend a verdict, for a sign-up hook
description: Needs `read` access. https://pidgeon.ai/docs/bouncer#verdict
tags:
- Bouncer
responses:
'200':
description: '`valid` true with the `verdict`’s claims, spent: the same verdict checked again is `used`. Otherwise `valid` false and `reason`: `invalid`, `expired`, `wrong_site`, `wrong_account` (another account’s verdict), `wrong_ip`, `used` or `revoked` (the key, agent or operator since). Not counted toward the month’s verifications.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: no `verdict`, or `origin` or `ip` cannot be read.'
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:
verdict:
type: string
description: The `verdict` `/v1/verify` answered.
origin:
type: string
description: 'Your site, as `https://shop.example`: the verdict must be for it.'
ip:
type: string
description: 'The address signing up: when the verdict names one, it must be this.'
required:
- verdict
/v1/site-rules:
get:
operationId: get_site_rules
summary: 'Your site rules: who each place lets in, and whether it acts'
description: Needs `read` access. https://pidgeon.ai/docs/bouncer#rules
tags:
- Bouncer
responses:
'200':
description: Each place (`signup`, `checkout`, `api`, `other`) with `require` (`any`, `known` or `verified`) and `enforce` (false while it only watches).
content:
application/json:
schema:
type: object
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
put:
operationId: put_site_rules
summary: Change your site rules
description: Needs `admin` access, a key of the whole account. https://pidgeon.ai/docs/bouncer#rules
tags:
- Bouncer
responses:
'200':
description: Every place’s rule, as `GET` answers it. Places left out stay as they were.
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: a place, a field or a value that is not one of the above.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
description: '`forbidden`: a key of one pod; the rules are the whole account’s. Or `forbidden`: the key has too little access, or the wrong reach.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
signup:
type: object
description: '`{ require, enforce }`: `require` is `any`, `known` or `verified`; `enforce` true acts on the decision, false only watches. Either may be left out.'
checkout:
type: object
description: As `signup`.
api:
type: object
description: As `signup`.
other:
type: object
description: 'As `signup`. Other pages never block: a block there is `limit`.'
required: []
/v1/reports:
post:
operationId: post_reports
summary: Report an agent from one of your verifications
description: Needs `send` access. https://pidgeon.ai/docs/reports#request
tags:
- Bouncer
responses:
'201':
description: '`{id}`.'
content:
application/json:
schema:
type: object
'400':
description: '`invalid`: a missing field, or a verification that cannot be reported.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
description: '`forbidden`: the account has no verified domain. 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 verification in this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`conflict`: that verification is already reported.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
verification_id:
type: string
format: uuid
description: A verification of yours whose signature held.
category:
type: string
description: What kind of misbehaviour.
enum:
- fraud
- abuse
- scraping
- spam
- fake_signups
- other
evidence:
type: string
description: 'What the agent did: 10 to 4,000 characters.'
required:
- verification_id
- category
- evidence
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