Proof Holdings Accounts API
Agent-driven account bootstrap. Public endpoint that creates a User on first identity or transparently pivots to login for existing ones.
Agent-driven account bootstrap. Public endpoint that creates a User on first identity or transparently pivots to login for existing ones.
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/proof-holdings:proof-holdings-accounts-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: proof.holdings Accounts API
version: 1.0.0
description: '**Multi-Surface Proof of Control**
Cryptographic proofs of digital asset control. proof.holdings issues signed JWT proofs that a user controls a digital asset (phone, email, domain, social, wallet) by completing a challenge from that asset. Proofs are offline-verifiable using the public keys published at `/.well-known/jwks.json` (ES256).
## Core Concepts
- **Verification**: A challenge-response flow to prove control of an asset
- **Proof Token**: Signed JWT issued after successful verification (ES256)
- **JWKS**: Public keys for offline verification at `/.well-known/jwks.json`
## Authentication
Most endpoints require API key authentication via Bearer token:
```
Authorization: Bearer pk_live_...
```
Dashboard endpoints use JWT authentication via httpOnly cookies.
## Rate Limits
All authenticated endpoints include rate limit headers:
- `X-RateLimit-Limit`: Maximum requests per window
- `X-RateLimit-Remaining`: Requests remaining in current window
- `X-RateLimit-Reset`: Unix timestamp when window resets
## The 7 Proofs
proof.holdings is built around seven verification primitives. Four are live today; three are coming soon. This API exposes endpoints for the live primitives only.
1. **Proof of Control** (live) — verify control of a phone, email, domain, social account, or wallet. Endpoints: `/api/v1/verifications`, `/api/v1/verification-requests`.
2. **Proof of Delegation** (live) — a control-proven domain authorizes a typed url/purl artifact, with an independently revocable signed token. The attestation is that the domain''s controller authorized the artifact — nothing more. Endpoints: `/api/v1/delegations`.
3. **Proof of Action** (live) — human-in-the-loop approval for irreversible actions, cryptographically signed; authorizations are its consent layer. Endpoints: `/api/v1/hitl`, `/api/v1/confirmations`, `/api/v1/authorizations`.
4. **Proof of Me** (live) — anti-impersonation reverse verification via trusted Circle members. Endpoints: `/api/v1/circles`, `/api/v1/identity-challenges`.
5. **Proof of Agreement** (coming soon) — continuous witnessing for group conversations; no API endpoints yet.
6. **Proof of Development** (coming soon) — verifiable development provenance via the team.management integration; no API endpoints yet.
7. **Proof of Enforcement** (coming soon) — proof that mandated processes actually ran; no API endpoints yet.'
contact:
name: proof.holdings Support
email: hello@proof.holdings
url: https://proof.holdings
license:
name: Proprietary
url: https://proof.holdings/terms
servers:
- url: https://api.proof.holdings
description: Production server
tags:
- name: Accounts
description: Agent-driven account bootstrap. Public endpoint that creates a User on first identity or transparently pivots to login for existing ones.
paths:
/api/v1/accounts:
post:
tags:
- Accounts
summary: Create account-bootstrap session
description: 'Create an account-bootstrap session for agent-driven onboarding. Public endpoint (rate limited: 15/min per IP, plus a per-identity budget of 3/hour for the email and SMS channels that no amount of IP rotation avoids).
The session is ALWAYS tagged `type="account_creation"`. It does NOT branch on whether the submitted identity already maps to a User — the response is uniform by design, because a differing shape or timing would answer "does this address have an account here?" to anyone who asks. Completing verification transparently creates a User when none exists or signs the existing one in; an agent that needs to tell those apart calls GET /auth/me afterwards and reads `created_at`.
THE EMAIL CHANNEL SENDS NOTHING HERE (`email_sent: false`, `send_required: true`). Delivering a message from our domain to an address nobody has proven is a separate, explicit act: POST /api/v1/accounts/{id}/send. The other channels are inbound — the user messages us (reverse OTP) — so nothing is dispatched to them at all.
No credential is required. A client that DOES present an API key (`Authorization: Bearer pk_…`) has it checked: a key the API no longer accepts is refused with 401 `invalid_api_key` before anything is stored, and a live one is recorded so the session issued on completion is BOUND to it — revoking the key by any path ends that session.'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAccountRequest'
required: true
responses:
'201':
description: Account session created
content:
application/json:
schema:
$ref: '#/components/schemas/AccountSessionResponse'
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: '`invalid_api_key` — the request presented an API key the API no longer accepts (unknown, revoked or expired). Requests without a `pk_` bearer never receive it.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: The IP rate limit, the per-identity budget (`identity_rate_limited`, 3/hour for the email and SMS channels), or `identity_declined` — the owner of this address used the "this wasn't me" link recently. The last one means DO NOT RETRY for that address.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Email service unavailable (email channel only), or `identity_check_unavailable` — the eligibility check could not be completed, so the request is refused rather than allowed through.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1Accounts
x-operation-id-source: derived
/api/v1/accounts/{id}/send:
post:
tags:
- Accounts
summary: Send the account-bootstrap email
description: 'Deliver the verification email that POST /api/v1/accounts deliberately withheld. Public endpoint — the session id is the bearer secret, the same model as the poll route.
One session sends at most one message. The material backing the send is claimed atomically when the send is ATTEMPTED — so two concurrent calls cannot both deliver — and a failed delivery hands it back, returning `email_sent: false` so the call can be retried. A repeat after a delivered send answers 410.
This is not an anti-abuse measure and does not claim to be one: whoever is willing to make two requests is not stopped by it. Volume is bounded by the per-identity budget on the create call and by the recipient''s own decline link. What the split removes is the case where creating a session and mailing a stranger were the same act.'
parameters:
- schema:
type: string
minLength: 1
description: Account session ID
example: auth_abc123
required: true
description: Account session ID
name: id
in: path
responses:
'200':
description: Send attempted. `email_sent` reports the outcome; `email_error` is present when delivery failed.
content:
application/json:
schema:
type: object
properties:
id:
type: string
channel:
type: string
email_sent:
type: boolean
email_error:
type: string
required:
- id
- channel
- email_sent
'400':
description: Invalid session id, session not pending, or a channel that dispatches nothing (`channel_not_email`)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: '`invalid_api_key` — the request presented an API key the API no longer accepts; nothing is claimed or sent. Requests without a `pk_` bearer never receive it.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Session not found or not an account-bootstrap session
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'410':
description: '`already_sent` — the material backing this session''s send is gone. Either the email was delivered, or the attempt was interrupted after the material was claimed and before it could be handed back (a failed restore, or the process dying mid-send), in which case nothing was sent. The two are indistinguishable from here, so do not report a delivery to the user on the strength of this response — start a new session instead. A session the recipient CANCELLED, or one that expired, answers 404 rather than 410: the session is removed before its send material is.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Either the IP rate limit, or `identity_declined` — the owner of this address used the "this wasn't me" link in a recent message and must not be emailed again until the cooldown lapses. `identity_declined` means DO NOT RETRY on behalf of the same address; ask the person directly instead.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: The session state (`send_material_unavailable`) or the decline check (`decline_check_unavailable`) could not be read. Nothing was sent — retry rather than treating either as a completed send.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1AccountsByIdSend
x-operation-id-source: derived
/api/v1/accounts/{id}:
get:
tags:
- Accounts
summary: Get account-session status
description: 'Poll an account-bootstrap session. Sets JWT + refresh cookies on verified status — the response shape does not vary with whether verification created a User or signed an existing one in.
**Email sign-ins** wait for the person, not just the link: an email session reads `pending` until it is released to the browser that started it — by the "Sign in the browser that requested this" button on the link''s page, by the starting browser itself pressing "Sign in", or by the code submitted through `POST /api/v1/auth/sessions/{id}/submit` — and only then `verified` with cookies. After "Sign in here" in another browser it reads `completed_elsewhere` and never sets a cookie. Opening the link alone changes nothing.
A session whose sign-in was STARTED with an API key is bound to that key when it is issued (see the create endpoint): every copy of it — this poll, the messenger''s "Open Dashboard" link, a magic link — ends when the key is revoked by any path. A poll presenting an API key the API no longer accepts (`Authorization: Bearer pk_…`) gets 401 `invalid_api_key` and no cookie. A poll without a `pk_` bearer is unaffected.
A verified session whose refresh token was retired since gets 401 `session_revoked` and no cookie: it was renewed (a renewal retires the token it replaces) or ended — revoked from the sessions list, logged out, signed out by "log out all" while it was listed, or its API key revoked. A blacklist that cannot be read refuses the same way.'
parameters:
- schema:
type: string
minLength: 1
description: Account session ID
example: auth_abc123
required: true
description: Account session ID
name: id
in: path
responses:
'200':
description: Account session status
content:
application/json:
schema:
$ref: '#/components/schemas/AccountSessionResponse'
'400':
description: Invalid session ID format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: '`invalid_api_key` — a verified session was collected with an API key the API no longer accepts; `session_revoked` — the session was renewed or ended since its sign-in. No cookie is set.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Session not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1AccountsById
x-operation-id-source: derived
/api/v1/accounts/{id}/events:
get:
tags:
- Accounts
summary: Stream account-session events (SSE)
description: Subscribe to real-time account-session status updates via Server-Sent Events. Public endpoint — session ID acts as bearer secret. Mirrors GET /auth/sessions/:id/events but uses a distinct SSE tenant bucket so account traffic does not share the auth budget.
parameters:
- schema:
type: string
minLength: 1
description: Account session ID
example: auth_abc123
required: true
description: Account session ID
name: id
in: path
responses:
'200':
description: SSE event stream
content:
text/event-stream:
schema:
type: string
description: Server-Sent Events stream with `connected` and `update` events
example: 'event: update
data: {"status":"verified","timestamp":"2026-04-16T12:00:00Z"}
'
'404':
description: Session not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Too many concurrent SSE connections
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1AccountsByIdEvents
x-operation-id-source: derived
components:
schemas:
CreateAccountRequest:
type: object
properties:
channel:
$ref: '#/components/schemas/AuthChannel'
phone_number:
type: string
description: Required for SMS channel to determine DID routing.
example: '+37069199199'
email:
type: string
format: email
description: Required for email channel.
example: alex@example.com
required:
- channel
description: Request body for creating an account-bootstrap session. The server transparently pivots to a login session when the submitted identity already belongs to an active User, so the agent polls identically regardless of outcome.
ErrorDetail:
type: object
properties:
field:
type: string
example: identifier
message:
type: string
example: Invalid phone number format
code:
type: string
example: invalid_string
required:
- field
- message
- code
description: Field-level validation error detail
AccountSessionType:
type: string
enum:
- account_creation
- login
description: Outcome of an account-session creation. `account_creation` means a new User will be written on verification. `login` indicates the submitted identity matched an existing User and the session will log them in.
example: account_creation
AuthChannel:
type: string
enum:
- telegram
- whatsapp
- sms
- email
description: Authentication channel
example: telegram
AccountSessionResponse:
type: object
properties:
id:
type: string
example: auth_9c2f...
type:
$ref: '#/components/schemas/AccountSessionType'
channel:
$ref: '#/components/schemas/AuthChannel'
status:
$ref: '#/components/schemas/AuthSessionStatus'
deep_link:
type: string
example: https://t.me/bot?start=auth_9c2f...
qr_code:
type: string
description: Base64-encoded PNG QR code for the deep link
qr_text:
type: string
description: UTF-8 text QR for terminal/agent rendering
sms_code:
type: string
description: Short code for SMS-channel reverse-OTP
sms_message:
type: string
email:
type: string
email_sent:
type: boolean
email_error:
type: string
expires_at:
type: string
format: date-time
example: '2026-04-16T20:10:00Z'
instructions:
type: string
verified_at:
type: string
format: date-time
user_id:
type: string
created_at:
type: string
format: date-time
required:
- id
- type
- channel
- status
- expires_at
description: Account-session response. Same wire format whether the request created a new account or pivoted to login — the `type` field distinguishes the outcome.
ErrorResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
example: validation_error
message:
type: string
example: Request validation failed
details:
type: array
items:
$ref: '#/components/schemas/ErrorDetail'
request_id:
type: string
description: Correlation id of this request — the same value as the `X-Request-Id` response header. Present on every error envelope; quote it when contacting support. A well-formed `X-Request-Id` sent with the request is reused.
example: req_4f1c2a9b7e3d4c5b8a6f0e1d2c3b4a59
moved_to:
type: string
description: 'The username a profile now lives at (404 `profile_moved` on `GET /api/v1/profiles/u/{username}` only): the requested name was an assigned default its owner replaced. Sent only while that profile is public.'
example: team_mgmt_hq
remaining_attempts:
type: number
description: Number of remaining attempts before lockout (auth endpoints only)
example: 3
retryAfter:
type: number
description: Seconds to wait before retrying (rate limit and lockout errors)
example: 3600
top_up_url:
type: string
description: Where to top up the prepaid balance (402 balance_empty only)
example: https://proof.holdings/billing
used:
type: number
description: This period's production proofs (402 balance_empty only)
example: 312
included:
type: number
description: Proofs the account's plan includes per period (402 balance_empty only)
example: 300
balance:
type: number
description: The prepaid balance in euro cents, at or below zero (402 balance_empty only)
example: 0
required:
- code
- message
required:
- error
description: Standard error response format
AuthSessionStatus:
type: string
enum:
- pending
- verified
- expired
- completed_elsewhere
- account_access_off
description: 'Status of an auth session. `completed_elsewhere` (terminal, no cookies): an email sign-in the person completed in ANOTHER browser by pressing "Sign in here" on the link''s page — this session will never become `verified`. `account_access_off` (terminal, no cookies): a WhatsApp, Telegram or SMS sign-in from a number whose account has turned its Account access off — the number signs in to nothing and no account is created for it. An email sign-in never reads it: that session simply expires, so the page discloses nothing about the address.'
example: pending
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: 'API key authentication. Use format: `pk_live_...` or `pk_test_...`'
CookieAuth:
type: apiKey
in: cookie
name: auth_token
description: JWT authentication via httpOnly cookie (dashboard only)