Proof Holdings Authorizations API
Channel authorization management for confirmations
Channel authorization management for confirmations
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-authorizations-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 Authorizations 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: Authorizations
description: Channel authorization management for confirmations
paths:
/api/v1/authorizations/export:
get:
tags:
- Authorizations
summary: Export authorizations
description: Download authorization history as CSV or JSON. Supports date range and status filtering.
security:
- BearerAuth: []
parameters:
- schema:
type: string
enum:
- csv
- json
example: csv
required: false
name: format
in: query
- schema:
type: string
format: date-time
required: false
name: from
in: query
- schema:
type: string
format: date-time
required: false
name: to
in: query
- schema:
$ref: '#/components/schemas/AuthorizationStatus'
required: false
description: Status of an authorization
name: status
in: query
responses:
'200':
description: Authorization export data
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Authorization'
total:
type: integer
required:
- data
- total
text/csv:
schema:
type: string
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1AuthorizationsExport
x-operation-id-source: derived
/api/v1/authorizations:
post:
tags:
- Authorizations
summary: Create authorization
description: Create a new authorization request. The user must authorize a channel before confirmations can be sent via that channel. The consent message names the approval setup's sub-account; `business_name` in the body is deprecated and ignored.
security:
- BearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAuthorizationBody'
required: true
responses:
'201':
description: Authorization created
headers:
Deprecation:
schema:
type: string
description: 'Sent only when the request carried the deprecated `business_name`: `@1792627200` (RFC 9745 date).'
Link:
schema:
type: string
description: 'Sent with `Deprecation`: `<https://proof.holdings/docs/api#sender-name>; rel="deprecation"; type="text/html"`.'
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAuthorizationResponse'
'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.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Active authorization already exists for this phone+channel
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1Authorizations
x-operation-id-source: derived
get:
tags:
- Authorizations
summary: List authorizations
description: Get paginated list of authorizations with filtering by status, phone, and channel.
security:
- BearerAuth: []
parameters:
- schema:
type: integer
exclusiveMinimum: 0
example: 1
required: false
name: page
in: query
- schema:
type: integer
exclusiveMinimum: 0
maximum: 100
example: 20
required: false
name: limit
in: query
- schema:
$ref: '#/components/schemas/AuthorizationStatus'
required: false
description: Status of an authorization
name: status
in: query
- schema:
type: string
example: '+15551234567'
required: false
name: phone
in: query
- schema:
$ref: '#/components/schemas/AuthorizationChannel'
required: false
description: Channel authorized for sending confirmations
name: channel
in: query
responses:
'200':
description: List of authorizations
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationListResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1Authorizations
x-operation-id-source: derived
/api/v1/authorizations/{id}:
get:
tags:
- Authorizations
summary: Get authorization
description: Get details of a specific authorization.
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Authorization details
content:
application/json:
schema:
$ref: '#/components/schemas/Authorization'
'404':
description: Authorization not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1AuthorizationsById
x-operation-id-source: derived
patch:
tags:
- Authorizations
summary: Update authorization label
description: 'Set or clear the owner-assigned human label for this authorization (F22). `label: null` or an empty string clears it.'
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAuthorizationBody'
required: true
responses:
'200':
description: Updated authorization
content:
application/json:
schema:
$ref: '#/components/schemas/Authorization'
'404':
description: Authorization not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: patchApiV1AuthorizationsById
x-operation-id-source: derived
delete:
tags:
- Authorizations
summary: Revoke authorization
description: Revoke an active or pending authorization. Optionally provide a reason.
security:
- BearerAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/RevokeAuthorizationBody'
responses:
'200':
description: Authorization revoked
content:
application/json:
schema:
$ref: '#/components/schemas/Authorization'
'400':
description: Cannot revoke (already revoked or invalid status)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Authorization not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: deleteApiV1AuthorizationsById
x-operation-id-source: derived
components:
schemas:
UpdateAuthorizationBody:
type: object
properties:
label:
type:
- string
- 'null'
maxLength: 100
description: Owner-assigned human label ("Sarah — CFO"). null or an empty string clears it.
example: Sarah — CFO
required:
- label
description: Request body for updating an authorization's owner-editable metadata (F22)
AuthorizationChannel:
type: string
enum:
- whatsapp
- telegram
- sms
- email
description: Channel authorized for sending confirmations
example: whatsapp
CreateAuthorizationResponse:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
status:
$ref: '#/components/schemas/AuthorizationStatus'
hitl_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: HITL configuration this authorization is linked to
recipient:
type:
- string
- 'null'
description: Channel-specific recipient identifier (chat_id for Telegram, phone or BSUID for WhatsApp)
example: '123456789'
phone:
type:
- string
- 'null'
example: '+15551234567'
bsuid:
type:
- string
- 'null'
description: WhatsApp Business-Scoped User ID
example: null
channel:
$ref: '#/components/schemas/AuthorizationChannel'
scope:
$ref: '#/components/schemas/AuthorizationScope'
business_name:
type: string
description: 'The name the consent message carried: the approval setup''s sub-account name, never a name typed in the request.'
example: Acme Corp
authorization_url:
type: string
format: uri
description: URL to send to the user for authorization
example: https://verify.proof.holdings/auth/abc123
expires_at:
type: string
format: date-time
created_at:
type: string
format: date-time
required:
- id
- status
- hitl_id
- channel
- scope
- business_name
- authorization_url
- expires_at
- created_at
description: Response from creating an authorization request
CreateAuthorizationBody:
type: object
properties:
hitl_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: HITL configuration to link this authorization to
recipient:
type: string
minLength: 1
maxLength: 255
description: Channel-specific recipient identifier (chat_id for Telegram, phone for WhatsApp/BSUID)
example: '123456789'
phone:
type: string
description: Target phone number in E.164 format
example: '+15551234567'
bsuid:
type: string
description: WhatsApp Business-Scoped User ID (alternative to phone for WhatsApp channel)
example: US.abcdef1234567890
channel:
$ref: '#/components/schemas/AuthorizationChannel'
scope:
type: string
enum:
- confirmations
description: Defaults to confirmations. Identity challenges are created through `POST /identity-challenges`.
business_name:
type: string
minLength: 1
maxLength: 200
description: Deprecated and ignored. The name on the consent message is always the approval setup's sub-account name (its business name, else its display name), and the response's `business_name` is the name used. Still accepted so existing callers keep working; a request that sends it gets a `Deprecation` header. One sub-account per brand is how a platform sends for several businesses.
deprecated: true
example: Acme Corp
business_profile_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: A sub-account to record on the authorization. It does not choose the name on the consent message — the approval setup's sub-account does.
expires_in:
type: integer
exclusiveMinimum: 0
maximum: 7776000
description: Expiry in seconds (max 90 days, default 90 days)
example: 7776000
required:
- hitl_id
- recipient
- phone
- channel
description: Request body for creating an authorization
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
ObjectId:
type: string
pattern: ^[0-9a-fA-F]{24}$
description: MongoDB ObjectId
example: 507f1f77bcf86cd799439011
RevokeAuthorizationBody:
type: object
properties:
reason:
type: string
maxLength: 500
description: Reason for revocation
example: User requested removal
AuthorizationListResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Authorization'
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
AuthorizationScope:
type: string
enum:
- confirmations
- identity_challenge
description: Scope of the authorization. `identity_challenge` is the Proof of Me scope.
example: confirmations
Authorization:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
status:
$ref: '#/components/schemas/AuthorizationStatus'
hitl_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: HITL configuration this authorization is linked to (confirmations scope; absent for identity_challenge scope)
circle_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: Circle this authorization is linked to (identity_challenge scope; absent for confirmations scope)
recipient:
type:
- string
- 'null'
description: Channel-specific recipient identifier (chat_id for Telegram, phone or BSUID for WhatsApp)
example: '123456789'
phone:
type:
- string
- 'null'
example: '+15551234567'
bsuid:
type:
- string
- 'null'
description: WhatsApp Business-Scoped User ID
example: null
channel:
$ref: '#/components/schemas/AuthorizationChannel'
scope:
$ref: '#/components/schemas/AuthorizationScope'
business_name:
type: string
example: Acme Corp
label:
type:
- string
- 'null'
description: Owner-assigned human label for this approver (F22); null when unset. Surfaces lead with it, falling back to the masked recipient.
example: Sarah — CFO
recipient_display_name:
type:
- string
- 'null'
description: The approver's own messenger name ("First Last @username"), captured when they approved over Telegram; null when none was captured. Chosen by the approver, not verified.
example: Sarah @sarah_cfo
enrolled:
type: boolean
description: 'Whether the approver has enrolled an encryption key. A confirmation can be sealed to an approver only once this is true; consent alone (`status: active`) is not enough.'
example: true
verification_id:
$ref: '#/components/schemas/ObjectId'
proof_token:
type: string
description: Signed proof of the recipient's decision, minted when they approved or refused, for both scopes. Absent while no decision has been made.
authorized_at:
type: string
format: date-time
denied_at:
type: string
format: date-time
description: When the recipient refused — the mirror of `authorized_at` for a `denied` row (a challenger cancellation stamps it too). Absent unless the authorization was denied; before it existed such a row carried no decision time at all, only `updated_at`.
expires_at:
type: string
format: date-time
revoked_at:
type: string
format: date-time
revocation_reason:
type: string
confirmations_sent:
type: integer
example: 5
last_used_at:
type: string
format: date-time
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
required:
- id
- status
- channel
- scope
- business_name
- recipient_display_name
- enrolled
- expires_at
- confirmations_sent
- created_at
- updated_at
description: Authorization granting permission to send confirmations via a specific channel
AuthorizationStatus:
type: string
enum:
- pending
- active
- expired
- revoked
- denied
description: Status of an authorization
example: active
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
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)