Proof Holdings API Keys API
API key management (2FA protected)
API key management (2FA protected)
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-api-keys-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 API Keys 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: API Keys
description: API key management (2FA protected)
paths:
/api/v1/me/api-keys:
get:
tags:
- API Keys
summary: List API keys
description: List the current user's live API keys (key values are never returned). Each key lists the keys it replaced in `replaced_key_ids`.
security:
- CookieAuth: []
responses:
'200':
description: List of API keys
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/UserAPIKeyListItem'
required:
- data
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getApiV1MeApiKeys
x-operation-id-source: derived
post:
tags:
- API Keys
summary: Create API key
description: Create a new API key. The full key value is only shown once in the response.
security:
- CookieAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAPIKeyRequest'
responses:
'201':
description: API key created (full key shown only once)
content:
application/json:
schema:
$ref: '#/components/schemas/APIKeyCreatedResponse'
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1MeApiKeys
x-operation-id-source: derived
/api/v1/me/api-keys/{id}:
delete:
tags:
- API Keys
summary: Revoke API key
description: 'Revoke an API key, making it permanently unusable. Takes a single-use `api_key_revoke` step-up grant bound to this key: start it with `targets: [""]`. One that named another key answers `2fa_required` with `reason: target_mismatch` and is not spent.'
security:
- CookieAuth: []
parameters:
- schema:
$ref: '#/components/schemas/ObjectId'
required: true
description: MongoDB ObjectId
name: id
in: path
responses:
'200':
description: API key revoked
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'404':
description: API key not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: deleteApiV1MeApiKeysById
x-operation-id-source: derived
patch:
tags:
- API Keys
summary: Rename API key
description: 'Change the name of a live API key. Only the name changes: the key value, environment, scopes and sub-account stay as they are, so the key can call exactly what it could before. No second factor is asked for.'
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/RenameAPIKeyRequest'
required: true
responses:
'200':
description: API key renamed
content:
application/json:
schema:
$ref: '#/components/schemas/RenameAPIKeyResponse'
'400':
description: Validation error (the name is empty or longer than 100 characters)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: API key not found, or revoked
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: patchApiV1MeApiKeysById
x-operation-id-source: derived
/api/v1/me/api-keys/{id}/regenerate:
post:
tags:
- API Keys
summary: Regenerate API key
description: 'Issue a new key (a new id and secret) with the same name, environment, scopes and sub-account, replacing this one. The new key expires when the old one would have — the same instant, not a fresh lifetime — and a key with no expiry is replaced by one with none; the answer carries `expires_at` when the new key has one. A key that has already expired is refused (`409 api_key_expired`) before any step-up code is asked for. The old key stops working immediately. The new key lists the old one in `replaced_key_ids`, so its requests and usage stay with the integration. Takes a single-use `api_key_regenerate` step-up grant bound to this key (`targets: [""]`); one that named another key 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:
'201':
description: API key regenerated (the new key is shown only once)
content:
application/json:
schema:
$ref: '#/components/schemas/APIKeyCreatedResponse'
'404':
description: API key not found, or revoked or regenerated meanwhile
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: '`api_key_expired` — the key''s `expires_at` has passed. An expired key is not renewed by regenerating it. The message names the day it expired and what to do: for a key an MCP sign-in minted, "This key expired on <day>. Connect your AI client again to get a new one."; for any other key, "This key expired on <day>. Create a new key." Answered before the step-up asks for a code, so no code is asked for or spent; nothing changes on the key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postApiV1MeApiKeysByIdRegenerate
x-operation-id-source: derived
components:
schemas:
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
RenameAPIKeyRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
example: Deploy bot
description: The new name, 1–100 characters after surrounding spaces are removed.
required:
- name
description: Request body for renaming an API key. The name is the only field a rename changes.
ObjectId:
type: string
pattern: ^[0-9a-fA-F]{24}$
description: MongoDB ObjectId
example: 507f1f77bcf86cd799439011
UserAPIKeyListItem:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
name:
type: string
example: Production Key
prefix:
type: string
example: pk_live_
description: The prefix every key of this environment shares (`pk_live_` or `pk_test_`) — not an identifier of this key.
environment:
type: string
enum:
- production
- test
example: production
scopes:
type: array
items:
type: string
example:
- verifications:*
profile_id:
anyOf:
- $ref: '#/components/schemas/ObjectId'
- type: 'null'
description: Sub-account (PublicProfile) the key is bound to; null for unbound keys.
last_used_at:
type:
- string
- 'null'
format: date-time
description: When the key last authenticated a request; absent or null if never
expires_at:
type:
- string
- 'null'
format: date-time
description: When the key stops authenticating; null means it never expires. This list is the only place an owner can still see it once the key has expired.
created_at:
type: string
format: date-time
replaced_key_ids:
type: array
items:
$ref: '#/components/schemas/ObjectId'
description: 'Ids of the keys this key replaced, newest first: the earlier keys of the same integration, replaced when the key was regenerated (`POST /api/v1/me/api-keys/{id}/regenerate`) or renewed by an MCP sign-in refresh. Requests and usage of those keys count as this key''s. Empty when it replaced none. Recorded from the release of key history on; a key replaced before it is not linked.'
required:
- id
- name
- prefix
- environment
- scopes
- profile_id
- expires_at
- created_at
- replaced_key_ids
description: A live API key as the owner's key list shows it. Never carries the key value.
RenameAPIKeyResponse:
type: object
properties:
data:
$ref: '#/components/schemas/UserAPIKeyListItem'
required:
- data
description: The renamed key as the owner's key list shows it. Never carries the key value.
APIKeyCreatedResponse:
type: object
properties:
id:
$ref: '#/components/schemas/ObjectId'
key:
type: string
description: The full API key. Returned only in this response; it cannot be read again.
example: pk_live_abc123...
name:
type: string
example: Production Key
prefix:
type: string
example: pk_live_
environment:
type: string
enum:
- production
- test
example: production
scopes:
type: array
items:
type: string
example:
- verifications:*
profile_id:
anyOf:
- $ref: '#/components/schemas/ObjectId'
- type: 'null'
description: Sub-account (PublicProfile) the key is bound to; null for unbound keys.
created_at:
type: string
format: date-time
expires_at:
type: string
format: date-time
description: When the key stops working. Present only on a regenerated key that has an expiry (the old key's instant, carried over); absent on a key that never expires.
warning:
type: string
example: Copy this key now. You will not be able to see it again.
required:
- id
- key
- name
- prefix
- environment
- scopes
- profile_id
- created_at
- warning
description: A newly created or regenerated API key, with its full value — the one response that carries it.
CreateAPIKeyRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
example: Production Key
environment:
type: string
enum:
- production
- test
example: production
scopes:
type: array
items:
type: string
maxItems: 20
example:
- verifications:create
- verifications:read
profile_id:
allOf:
- $ref: '#/components/schemas/ObjectId'
- description: Bind the key to a sub-account (PublicProfile) owned by the caller. Immutable after creation.
description: Request body for creating an API key
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)