Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/proof-holdings:proof-holdings-phones-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: proof.holdings Phones 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: Phones
description: Phone number management
paths:
/api/v1/me/phones:
get:
tags:
- Phones
summary: List phones
description: List all phone numbers associated with the user account.
security:
- CookieAuth: []
responses:
'200':
description: List of phones
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/PhoneListItem'
required:
- data
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1MePhones
x-operation-id-source: derived
/api/v1/me/phones/{id}:
delete:
tags:
- Phones
summary: Remove phone
description: 'Remove a phone number from the account (h-implement-proper-deletion, PE-2). Refused with 409 while it is the identifier this session signed in with (`login_identifier`), the last sign-in method across phones and emails (`last_login_method`), or the last phone while an active Proof of Me circle exists (`circles_need_phone`). Otherwise, after a single-use `phone_remove` step-up grant bound to this id is consumed (`403 2fa_required` without one; `reason: target_mismatch` when the grant names other ids): every proof of a phone number is revoked, approval consents naming it are revoked, approval setups left without an approver are marked and their pending requests declined, the primary flag moves deterministically to the oldest remaining phone and active circles follow it, the row is hard-deleted, the other sessions are signed out, and a notice goes to the contacts captured before the delete. The response names the new primary. Cannot be undone. `GET /me/phones/{id}/removal-preview` shows the same counts beforehand.'
security:
- CookieAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Phone removed — the cascade, line by line
content:
application/json:
schema:
$ref: '#/components/schemas/IdentifierRemovedResponse'
'403':
description: '`2fa_required` — a single-use step-up grant bound to this id is required (`reason: target_mismatch` when the grant names other ids); nothing was changed'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Phone not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: '`login_identifier`, `last_login_method` or `circles_need_phone` — a guard refused the removal; `access_change_in_progress` — another change to the account''s ways in (an Account access switch or a removal) is running; nothing was changed'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: '`access_change_unavailable` — whether another change to the account''s ways in is running could not be read; nothing was changed'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: deleteApiV1MePhonesById
x-operation-id-source: derived
/api/v1/me/phones/{id}/removal-preview:
get:
tags:
- Phones
summary: Preview phone removal
description: What `DELETE /me/phones/{id}` would do — the counts the Remove dialog shows — or the reason it is refused. Reads nothing but the account; changes nothing.
security:
- CookieAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: 'What removing Phone would do, or why it is refused (`allowed: false`)'
content:
application/json:
schema:
$ref: '#/components/schemas/IdentifierRemovalPreview'
'404':
description: Phone not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1MePhonesByIdRemovalPreview
x-operation-id-source: derived
/api/v1/me/phones/{id}/account-access:
put:
tags:
- Phones
summary: Turn Account access on or off
description: 'Whether this phone signs in to the account and confirms its sensitive actions (2FA step-ups). Every new row starts ON. Session only. EVERY change takes a single-use `account_access` step-up bound to the act and this row: start it with `targets: ["act:access_on" or "act:access_off", ""]` — off as well as on, because a session holder could otherwise add their own address and switch the owner''s off. A request that changes nothing answers 200 without spending the grant. Turning off the last way in answers `409 last_account_access` before the grant is spent; a switched-off row can always be removed. Turning a row off ends every sign-in session that number opened at the session''s next renewal, within 15 minutes (the life of its access token) — the session making the change included, when it signed in with this row — and signs out no other device; turning it back on before then lets such a session continue. MCP sign-ins and API keys are not sessions and are not affected.'
security:
- CookieAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AccountAccessRequest'
required: true
responses:
'200':
description: Account access as it now stands
content:
application/json:
schema:
$ref: '#/components/schemas/AccountAccessResponse'
'400':
description: Malformed id or body
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Not signed in
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: '`2fa_required`: no `account_access` grant for this act on this row (`reason: target_mismatch` for one bound to another)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Phone not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: '`last_account_access`: this is the only way left to sign in to the account; `access_change_in_progress`: another change to the account''s ways in (a switch or a removal) is running — try again in a moment'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: '`access_change_unavailable`: whether another change is running could not be read, so nothing was changed'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: putApiV1MePhonesByIdAccountAccess
x-operation-id-source: derived
/api/v1/me/phones/{id}/primary:
put:
tags:
- Phones
summary: Set primary phone
description: 'Set a phone number as the primary phone. Session only. Takes a single-use `phone_primary` step-up grant bound to this phone: start it with `targets: [""]`. The change spends the grant; one that named another phone answers `2fa_required` with `reason: target_mismatch`.'
security:
- CookieAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: Primary phone updated
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'404':
description: Phone not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: putApiV1MePhonesByIdPrimary
x-operation-id-source: derived
/api/v1/me/phones/add:
post:
tags:
- Phones
summary: Add phone
description: Start adding a new phone number via reverse OTP verification.
security:
- CookieAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AddPhoneRequest'
required: true
responses:
'201':
description: Phone add session started
content:
application/json:
schema:
$ref: '#/components/schemas/AddPhoneSessionResponse'
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1MePhonesAdd
x-operation-id-source: derived
/api/v1/me/phones/add/{sessionId}:
get:
tags:
- Phones
summary: Get phone add status
description: Poll for the status of a phone add verification session.
security:
- CookieAuth: []
parameters:
- schema:
type: string
minLength: 1
description: Auth session ID
required: true
description: Auth session ID
name: sessionId
in: path
responses:
'200':
description: Session status
content:
application/json:
schema:
$ref: '#/components/schemas/AddPhoneStatusResponse'
'404':
description: Session not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1MePhonesAddBySessionId
x-operation-id-source: derived
/api/v1/me/phones/add/{sessionId}/events:
get:
tags:
- Phones
summary: Stream phone add events (SSE)
description: Subscribe to real-time phone add session status updates via Server-Sent Events. Sends `connected` event on open, then `update` events when the phone-add session status changes (e.g., verified). Includes heartbeat to keep connection alive through Cloudflare.
security:
- CookieAuth: []
parameters:
- schema:
type: string
minLength: 1
description: Auth session ID
required: true
description: Auth session ID
name: sessionId
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":"2024-01-01T00:00:00Z"}
'
'404':
description: Session not found or not owned by user
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Too many concurrent SSE connections
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Server SSE capacity exhausted
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1MePhonesAddBySessionIdEvents
x-operation-id-source: derived
components:
schemas:
IdentifierRemovedResponse:
type: object
properties:
success:
type: boolean
description: Always `true`. The 1.x Go, PHP and Python SDK types carry it as a string, as released; it is typed boolean in the next major.
type:
type: string
enum:
- phone
- email
removed_id:
type: string
example: 507f1f77bcf86cd799439011
identifier:
type: string
description: Masked.
example: +1555***1001
proofs_revoked:
type: integer
authorizations_revoked:
type: integer
hitl_configs_without_approver:
type: array
items:
type: object
properties:
id:
type: string
name:
type:
- string
- 'null'
confirmations_denied:
type: integer
required:
- id
- name
- confirmations_denied
circles_repointed:
type: integer
description: 'Phones only: circles that now reach the owner at `new_primary`; 0 for an email.'
new_primary:
type:
- object
- 'null'
properties:
id:
type: string
example: 507f1f77bcf86cd799439011
identifier:
type: string
description: Masked.
example: +1555***2002
required:
- id
- identifier
description: The row that becomes (or became) primary when the removed one was; null otherwise.
lookalike_watch:
type: string
enum:
- repointed
- canceled
- unchanged
sessions_invalidated:
type: integer
description: Other listed devices signed out, idle ones included; the calling session stays. A device missing from the list — signed in before the list held idle devices, or one whose listing could not be recorded — is not counted, so read `sessions_signed_out` for whether every other device was signed out.
sessions_signed_out:
type: boolean
description: Every other device was signed out, idle ones included; the calling session stays. False when that could not be done — the removal itself still happened.
notice:
type: array
items:
type: object
properties:
kind:
type: string
enum:
- email
- telegram
- whatsapp
example: email
address:
type: string
description: Masked.
example: o***@example.com
outcome:
type: string
description: '`sent`, `skipped:<why>` or `failed:<why>`. A notice is a courtesy after an act that already committed; a failed one never fails the request.'
example: sent
required:
- kind
- address
- outcome
required:
- success
- type
- removed_id
- identifier
- proofs_revoked
- authorizations_revoked
- hitl_configs_without_approver
- circles_repointed
- new_primary
- lookalike_watch
- sessions_invalidated
- sessions_signed_out
- notice
description: The cascade a removal performed, line by line — the same lines the notice carries.
PhoneListItem:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
phone_number:
type: string
example: '+37069199199'
verification_channel:
type: string
description: The channel the number was first verified over (whatsapp, telegram or sms).
example: whatsapp
verified_channels:
type: array
items:
type: string
description: Every channel the number has been verified over.
example:
- whatsapp
is_primary:
type: boolean
example: true
account_access:
type: boolean
description: 'Account access (m-asset-sign-in-choice): whether this row signs in and confirms sensitive actions (2FA step-ups). A row stored before the field existed reads `true`. Absent from an API that predates it.'
example: true
verified_at:
type: string
format: date-time
created_at:
type: string
format: date-time
channel_metadata:
type: object
properties:
telegram_chat_id:
type: string
description: Telegram chat ID for HITL messaging
telegram_user_id:
type: string
description: Telegram user ID
telegram_username:
type: string
description: Telegram username
description: Channel-specific metadata captured during verification; present only when some was captured
required:
- id
- phone_number
- verification_channel
- verified_channels
- is_primary
- verified_at
- created_at
description: One of the account's phone numbers, as `GET /me/phones` lists it.
IdentifierRemovalPreview:
type: object
properties:
allowed:
type: boolean
description: False when a guard refuses the removal; the dialog shows `blocked.message` in its disabled state.
blocked:
type:
- object
- 'null'
properties:
code:
type: string
enum:
- login_identifier
- last_login_method
- circles_need_phone
message:
type: string
required:
- code
- message
type:
type: string
enum:
- phone
- email
identifier:
type: string
description: Masked.
example: +1555***1001
is_primary:
type: boolean
proofs:
type: integer
description: Active proofs of this identifier that would be revoked.
authorizations:
type: integer
description: Approval consents naming it that would be revoked.
hitl_configs_without_approver:
type: array
items:
type: object
properties:
id:
type: string
name:
type:
- string
- 'null'
pending_confirmations:
type: integer
required:
- id
- name
- pending_confirmations
description: Approval setups whose only approver channel this is; their pending requests would be declined.
circles:
type: integer
description: 'Phones only: active Proof of Me circles, which follow the primary phone.'
new_primary:
type:
- object
- 'null'
properties:
id:
type: string
example: 507f1f77bcf86cd799439011
identifier:
type: string
description: Masked.
example: +1555***2002
required:
- id
- identifier
description: The row that becomes (or became) primary when the removed one was; null otherwise.
lookalike_watch:
type: string
enum:
- repointed
- canceled
- unchanged
description: 'Emails only: what happens to the Lookalike Watch notification address.'
notice_to:
type: array
items:
type: string
enum:
- email
- telegram
- whatsapp
description: Where the notice would go — captured before the row is gone.
required:
- allowed
- blocked
description: 'What removing a phone or email would do; `allowed: false` carries the reason instead of the counts.'
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
SuccessResponse:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: Operation completed successfully
required:
- success
description: Generic success response
SmsNumbersByRegion:
type: object
properties:
americas:
$ref: '#/components/schemas/SessionSmsNumber'
europe:
$ref: '#/components/schemas/SessionSmsNumber'
israel:
$ref: '#/components/schemas/SessionSmsNumber'
required:
- americas
- europe
- israel
description: Our SMS numbers, one entry per region and always all three. A region with no number configured carries an empty `did` and no QR code.
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
ObjectId:
type: string
pattern: ^[0-9a-fA-F]{24}$
description: MongoDB ObjectId
example: 507f1f77bcf86cd799439011
AccountAccessResponse:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
type:
type: string
enum:
- email
- phone
account_access:
type: boolean
description: The switch as it now stands.
required:
- id
- type
- account_access
description: The row's Account access after the change.
AddPhoneStatusResponse:
type: object
properties:
session_id:
type: string
phone_number:
type: string
description: The number the person proved; absent until they have
example: '+15550104477'
channel:
type: string
enum:
- telegram
- whatsapp
- sms
status:
type: string
enum:
- pending
- verified
- expired
- taken
verified_at:
type: string
format: date-time
description: Present once `status` is `verified`
required:
- session_id
- channel
- status
description: A phone-add session's state
AddPhoneSessionResponse:
type: object
properties:
session_id:
type: string
example: addphone_0f3a9c2e7b1d4f6a8c0e2b4d6f8a0c2e
channel:
type: string
enum:
- telegram
- whatsapp
- sms
status:
type: string
enum:
- pending
expires_at:
type: string
format: date-time
deep_link:
type: string
description: Opens Telegram or WhatsApp with what the person sends (`telegram`, `whatsapp`)
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
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: ACEFGH
sms_message:
type: string
description: The message to send (`sms` only)
sms_dids:
$ref: '#/components/schemas/SmsNumbersByRegion'
required:
- session_id
- channel
- status
- expires_at
- instructions
description: 'A phone-add session: the person proves the number by sending from it over `channel`'
AccountAccessRequest:
type: object
properties:
account_access:
type: boolean
required:
- account_access
additionalProperties: false
description: Turn an email's or phone's Account access on or off. Either direction takes a single-use `account_access` step-up bound to the act and the row.
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
AddPhoneRequest:
type: object
properties:
channel:
type: string
enum:
- telegram
- whatsapp
- sms
description: Messaging channel for phone verification
example: whatsapp
required:
- channel
description: Request body for adding a new phone
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)