Proof Holdings Confirmations API
HITL confirmation requests and approvals
HITL confirmation requests and approvals
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-confirmations-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 Confirmations 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: Confirmations
description: HITL confirmation requests and approvals
paths:
/api/v1/confirmations:
post:
tags:
- Confirmations
summary: Create confirmation
description: Create a new HITL confirmation request. Dispatches approval message via configured HITL channels.
security:
- BearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateConfirmationBody'
required: true
responses:
'201':
description: Confirmation created and dispatched
content:
application/json:
schema:
$ref: '#/components/schemas/Confirmation'
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
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'
'404':
description: HITL config not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1Confirmations
x-operation-id-source: derived
get:
tags:
- Confirmations
summary: List confirmations
description: List confirmation requests for the current tenant. Supports filtering by status, hitl_id and profile_id. `profile_id` lists only that sub-account's confirmations — those sent through its HITL configs or created by its API keys; a key bound to another sub-account is refused with 403 `profile_mismatch`.
security:
- BearerAuth: []
parameters:
- schema:
type: integer
exclusiveMinimum: 0
default: 1
required: false
name: page
in: query
- schema:
type: integer
exclusiveMinimum: 0
maximum: 100
default: 20
required: false
name: limit
in: query
- schema:
$ref: '#/components/schemas/ConfirmationStatusFilter'
required: false
description: 'Status filter for listing confirmations. `pending`, `approved` and `denied` match the stored status (so `denied` includes timeouts). `expired` is not a status: it selects the confirmations that timed out — `denied` with `response.channel` `system` and `response.text` `timeout`, or still `pending` past `timeout_at`. A system denial for another reason (`key_rotated`, `config_archived`) is not included.'
name: status
in: query
- schema:
$ref: '#/components/schemas/ObjectId'
required: false
description: MongoDB ObjectId
name: hitl_id
in: query
- schema:
$ref: '#/components/schemas/ObjectId'
required: false
description: MongoDB ObjectId
name: profile_id
in: query
- schema:
type:
- string
- 'null'
format: date-time
description: Filter confirmations created on or after this date
required: false
description: Filter confirmations created on or after this date
name: start_date
in: query
- schema:
type:
- string
- 'null'
format: date-time
description: Filter confirmations created on or before this date
required: false
description: Filter confirmations created on or before this date
name: end_date
in: query
responses:
'200':
description: Paginated list of confirmations
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmationListResponse'
'401':
description: Unauthorized
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.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1Confirmations
x-operation-id-source: derived
/api/v1/confirmations/{id}:
get:
tags:
- Confirmations
summary: Get confirmation
description: Get a single confirmation by ID.
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Confirmation details
content:
application/json:
schema:
$ref: '#/components/schemas/Confirmation'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Confirmation not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1ConfirmationsById
x-operation-id-source: derived
/api/v1/confirmations/{id}/approval-link:
post:
tags:
- Confirmations
summary: Get approval link
description: 'Get the approval link of the HITL config owner, who decides with the config''s own key. It is not an approver''s link: an approver''s link goes only to their own channel, and `POST /api/v1/confirmations/{id}/resend` ("Send again") is what sends it there again. Every call returns the same owner link until "Send again" reaches the owner; "Send again" replaces it (the earlier one then answers `410 approval_link_superseded`), and the next call returns a new one. Calling it again cancels nothing. The link expires when the confirmation does.'
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Approval link generated
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalLinkResponse'
'400':
description: Confirmation is not pending or has expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Confirmation not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1ConfirmationsByIdApprovalLink
x-operation-id-source: derived
/api/v1/confirmations/{id}/resend:
post:
tags:
- Confirmations
summary: Send again
description: 'Send a pending confirmation again to the people it went to: each recipient gets a fresh link bound to them, through their own channel, expiring when the confirmation does. The response carries counts only — never a link. Recipients are the approvers whose authorization is still active and whose key the stored message is encrypted for, plus the owner; anyone else is skipped (an approver added since the confirmation was created needs a new confirmation). Each recipient reached gets only this link from now on: their earlier links stop working (`410 approval_link_superseded`), since a forwarded link hands over its holder''s locked key; a recipient whose every channel failed keeps the links they had. For the owner that includes the link `POST /api/v1/confirmations/{id}/approval-link` returns: the next call returns a new one. One resend per confirmation per 60 seconds; each one is recorded in the confirmation''s `resends`.'
security:
- BearerAuth: []
- CookieAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Sent again
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmationResendResponse'
'400':
description: '`invalid_status` (already decided), `expired`, or `config_archived` (its approval setup was archived)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
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'
'404':
description: Confirmation not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: '`no_recipients` — nobody it went to can be sent it again'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: '`resend_too_soon` — sent again within the last 60 seconds; `Retry-After` says when the next may run'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: '`resend_unavailable` — messages cannot be sent right now, or the 60-second limit could not be checked; nothing was sent'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1ConfirmationsByIdResend
x-operation-id-source: derived
/api/v1/confirmations/{id}/events:
get:
tags:
- Confirmations
summary: Stream confirmation events (SSE)
description: Server-Sent Events stream for real-time confirmation status updates.
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: SSE event stream
content:
text/event-stream:
schema:
type: string
description: Server-Sent Events stream
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Confirmation not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1ConfirmationsByIdEvents
x-operation-id-source: derived
components:
schemas:
ConfirmationStatus:
type: string
enum:
- pending
- approved
- denied
description: Status of a confirmation request. A confirmation that times out is `denied`, with `response.channel` `system` and `response.text` `timeout`.
example: pending
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
ConfirmationListResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Confirmation'
pagination:
type: object
properties:
page:
type: integer
limit:
type: integer
total:
type: integer
total_pages:
type: integer
required:
- page
- limit
- total
- total_pages
required:
- data
- pagination
description: Paginated list of confirmations
CreateConfirmationBody:
type: object
properties:
hitl_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: HITL configuration to use for this confirmation
message:
type: string
minLength: 1
maxLength: 10000
description: Encrypted confirmation message (ciphertext envelope JSON)
example: '{"v":1,"alg":"RSA-OAEP-256+AES-256-GCM","ek":"...","iv":"...","ct":"...","tag":"...","kid":"..."}'
proof_expiry_days:
type: integer
minimum: 1
maximum: 365
description: Lifetime in days (1-365) of the proof minted for the decision. Without it the decision proof lives 365 days; the account `proof_expiry_days` setting does not apply to confirmations.
example: 365
required:
- hitl_id
- message
description: Request body for creating a confirmation
ObjectId:
type: string
pattern: ^[0-9a-fA-F]{24}$
description: MongoDB ObjectId
example: 507f1f77bcf86cd799439011
Confirmation:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
hitl_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: HITL configuration used for this confirmation
message:
type: string
description: The stored ciphertext envelope, echoed back verbatim. The server never sees the plaintext, so this is never the human sentence — the approver decrypts it in their browser.
example: '{"v":1,"alg":"RSA-OAEP-256+AES-256-GCM","ek":"...","iv":"...","ct":"...","tag":"...","kid":"..."}'
status:
$ref: '#/components/schemas/ConfirmationStatus'
response:
type:
- object
- 'null'
properties:
action:
type: string
enum:
- approve
- deny
example: approve
text:
type:
- string
- 'null'
description: 'The approver''s optional comment, encrypted in the browser by the approval page: a ciphertext envelope (JSON), not plaintext. When `channel` is `system` no approver acted — the confirmation was denied by a timeout, a key rotation or an archived config — and this is that plaintext reason (`timeout`, `key_rotated`, `config_archived`). Null otherwise.'
channel:
type:
- string
- 'null'
example: browser
at:
type: string
format: date-time
authorization_id:
type:
- string
- 'null'
description: 'The enrolled approver''s Authorization that signed this decision; null when the owner decided (`decided_by: owner`), for a system denial, and for a decision recorded before decisions were signed'
decided_by:
type:
- string
- 'null'
enum:
- approver
- owner
- null
description: 'Who signed the decision: an enrolled approver with their own key, or the account owner with the config key. Null for a system denial (`channel` `system`) and for a decision recorded before decisions were signed.'
kid:
type:
- string
- 'null'
description: Key id (sha256 hex of the DER SPKI) of the key that signed the decision; null where `decided_by` is null
public_key:
type:
- string
- 'null'
description: The signing key (SPKI PEM), stored with the decision so it stays verifiable after a key rotation erases the enrolled key
signed_input:
type:
- string
- 'null'
description: 'The exact bytes signed: `decision.<confirmation id>.<action>.<link nonce>.<sha256 hex of text, or ->`'
signature:
type:
- string
- 'null'
description: RSASSA-PKCS1-v1_5 / SHA-256 signature over `signed_input`, base64 — verify it with `public_key`
required:
- action
- at
description: The decision and its evidence (null while pending)
timeout_at:
type:
- string
- 'null'
format: date-time
description: When this confirmation will time out
proof_token:
type:
- string
- 'null'
description: Signed proof of the decision, approval or denial alike, naming who decided (`decided_by`, plus `authorization_id` for an approver); null while pending and for a system denial (`response.channel` is `system`)
resends:
type: array
items:
$ref: '#/components/schemas/ConfirmationResend'
description: Every "Send again" (`POST /confirmations/{id}/resend`), oldest first, the last 50 kept. Absent from an API that predates it.
resolved_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
required:
- id
- hitl_id
- message
- status
- created_at
- updated_at
description: A HITL confirmation request
ApprovalLinkResponse:
type: object
properties:
approval_url:
type: string
format: uri
example: https://proof.holdings/approve/507f1f77bcf86cd799439011.1712534400.a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4.abcdef1234567890
required:
- approval_url
description: Regenerated approval link for a pending confirmation
ConfirmationResend:
type: object
properties:
at:
type: string
format: date-time
description: When the confirmation was sent again
actor:
type: object
properties:
kind:
type: string
enum:
- session
- api_key
description: A dashboard session of the owner, or an API key
api_key_id:
type:
- string
- 'null'
description: The API key that asked; null for a session
required:
- kind
- api_key_id
channels:
type: array
items:
type: object
properties:
type:
type: string
description: The channel it went through, e.g. `telegram`
recipient:
type: string
description: The recipient's authorization id, or `owner` — never a phone number, chat id or link
required:
- type
- recipient
description: Each channel a fresh link was sent to
required:
- at
- actor
- channels
description: 'One "Send again": when, who asked, and which channels it went to'
ConfirmationResendResponse:
type: object
properties:
confirmation_id:
$ref: '#/components/schemas/ObjectId'
resent:
type: integer
description: Recipients sent a fresh link, each through their own channel
skipped:
type: integer
description: 'Recipients not sent it: no longer authorized, unable to open the message (an approver added after the confirmation was created), or a failed delivery'
required:
- confirmation_id
- resent
- skipped
description: Counts only — the response never carries a link
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
ConfirmationStatusFilter:
type: string
enum:
- pending
- approved
- denied
- expired
description: 'Status filter for listing confirmations. `pending`, `approved` and `denied` match the stored status (so `denied` includes timeouts). `expired` is not a status: it selects the confirmations that timed out — `denied` with `response.channel` `system` and `response.text` `timeout`, or still `pending` past `timeout_at`. A system denial for another reason (`key_rotated`, `config_archived`) is not included.'
example: expired
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)