Proof Holdings Sessions API
Phone-first verification sessions
Phone-first verification sessions
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-sessions-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 Sessions 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: Sessions
description: Phone-first verification sessions
paths:
/api/v1/sessions:
post:
tags:
- Sessions
summary: Create phone session
description: 'Create a phone verification session (phone-first flow): the person messages our Telegram or WhatsApp bot, or texts a short code by SMS to one of our numbers, and the number is captured from that message. Read the result with `GET /api/v1/sessions/{id}`.'
security:
- BearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSessionRequest'
required: true
responses:
'201':
description: Session created
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSessionResponse'
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: 'balance_empty. Only once billing is live: an account that has used the proofs its plan includes this month and whose prepaid balance is at or below zero is refused new proof requests until it tops up (top_up_url). Proofs already issued keep working, and accounts billed at the end of the month are never paused. The error carries top_up_url, used, included and balance (in cents).'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: profile_mismatch — a sub-account key named another sub-account (it acts for its own sub-account only); profile_not_owned — the named sub-account does not belong to the account
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1Sessions
x-operation-id-source: derived
/api/v1/sessions/{id}:
get:
tags:
- Sessions
summary: Get session status
description: Poll for session status (use for long-polling).
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Session status
content:
application/json:
schema:
$ref: '#/components/schemas/Session'
'404':
description: Session not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1SessionsById
x-operation-id-source: derived
components:
schemas:
CreateSessionResponse:
type: object
properties:
id:
type: string
pattern: ^sess_[a-f0-9]{32}$
description: Session id
example: sess_8f14e45fceea167a5a36dedd4bea2543
channel:
$ref: '#/components/schemas/SessionChannel'
status:
type: string
enum:
- pending
deep_link:
type: string
description: Opens the messenger (`https://t.me/…`, `https://wa.me/…`) or the messaging app (`sms:<number>?body=…`) with what the person sends
example: sms:+19294568714?body=Verify%20ABC234
qr_code:
type: string
description: Base64-encoded PNG QR code for `deep_link`
qr_text:
type: string
description: UTF-8 text QR for `deep_link`, for terminal/agent rendering
expires_at:
type: string
format: date-time
instructions:
type: string
description: One line telling the person what to do
sms_code:
type: string
description: The short code the person texts (`sms` only)
example: ABC234
sms_message:
type: string
description: The message to send, as pre-filled in the links (`sms` only)
example: Verify ABC234
sms_dids:
$ref: '#/components/schemas/SessionSmsNumbers'
required:
- id
- channel
- status
- deep_link
- qr_code
- qr_text
- expires_at
- instructions
description: 'A new phone-first session: what to show the person'
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
VerificationConfidence:
type: string
enum:
- high
- standard
- degraded
description: Verification confidence level. high = identifier specified + carrier verified; standard = identifier-free or carrier data unavailable; degraded = risk signals detected.
example: high
ObjectId:
type: string
pattern: ^[0-9a-fA-F]{24}$
description: MongoDB ObjectId
example: 507f1f77bcf86cd799439011
SessionSmsNumber:
type: object
properties:
did:
type: string
description: Our number the short code is texted to
example: '+19294568714'
label:
type: string
example: Americas
flag:
type: string
example: 🇺🇸
qr_code:
type: string
description: 'Base64-encoded PNG QR code: opens the messaging app on this number with the message pre-filled'
qr_text:
type: string
description: UTF-8 text QR of the same link, for terminal/agent rendering
required:
- did
- label
- flag
description: One of our SMS numbers, for one region
CreateSessionRequest:
type: object
properties:
profile_id:
type: string
pattern: ^[0-9a-fA-F]{24}$
description: 'The sub-account this is for; its branding and templates are used for every message. An account-wide key may name any sub-account of its account; a sub-account key acts for its own sub-account only (naming another answers `403 profile_mismatch`). Omitted: the key''s sub-account, else the primary sub-account.'
example: 507f1f77bcf86cd799439011
channel:
type: string
enum:
- telegram
- whatsapp
- sms
description: 'How the person proves the number. No phone number is sent: with `telegram` or `whatsapp` the bot reads it from the person''s account; with `sms` it is the number the short code is texted from.'
client_metadata:
type: object
additionalProperties: {}
description: Your own key-value data, stored with the session.
context:
type: object
properties:
action:
type: string
enum:
- login
- 2fa
- verification
- recovery
description: 'Why you are asking, which picks the bot''s wording: `login` (log in to …), `2fa` (… is requesting 2FA verification), `recovery` (… account recovery request), `verification` (… wants to verify your phone number). Omitted: `verification`. The name in the message is always the sub-account''s.'
required:
- channel
description: Request body for creating a phone-first verification session
Session:
type: object
properties:
id:
type: string
pattern: ^sess_[a-f0-9]{32}$
description: Session id
example: sess_8f14e45fceea167a5a36dedd4bea2543
channel:
$ref: '#/components/schemas/SessionChannel'
status:
type: string
enum:
- pending
- verified
- expired
created_at:
type: string
format: date-time
phone_number:
type: string
description: The proven number (once `verified`)
verified_at:
type: string
format: date-time
description: Once `verified`
verification_id:
type: string
description: The verification record created on completion (once `verified`)
proof:
$ref: '#/components/schemas/Proof'
required:
- id
- channel
- status
- created_at
description: Phone-first session status
Proof:
type: object
properties:
token:
type: string
description: Signed JWT proof token (ES256; verify against the JWKS key named by the token's `kid`)
example: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...
expires_at:
type: string
format: date-time
description: When the proof expires
example: '2025-01-15T12:00:00Z'
confidence:
allOf:
- $ref: '#/components/schemas/VerificationConfidence'
- description: Verification confidence level (present for SMS verifications)
required:
- token
- expires_at
description: Proof token after successful verification
SessionSmsNumbers:
type: object
properties:
americas:
$ref: '#/components/schemas/SessionSmsNumber'
europe:
$ref: '#/components/schemas/SessionSmsNumber'
israel:
$ref: '#/components/schemas/SessionSmsNumber'
required:
- americas
description: Every number an `sms` session's code can be texted to, one per configured region (a region with no number is absent), each with its own QR code. `deep_link` uses the default region's number; the request comes from your server, so nothing in it says where the person is.
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
SessionChannel:
type: string
enum:
- telegram
- whatsapp
- sms
description: 'How the person proves the number: `telegram` or `whatsapp` (the bot reads the number from their account), or `sms` (they text a short code from the number to one of ours).'
example: telegram
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)