Operations 3
POST
/api/v1/agent/chat/turn
Talk to an agent: run one chat turn as it, streamed as Server-Sent Events
#
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/proofable-me:proofable-me-agents-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: Proofable Agents API
version: 1.3.9
description: 'Public HTTP API for Proofable integrators.
Recommended integration order (simplest first):
1. Browser: VerifyGate widget or hosted verify at https://proofable.me/verify (wallet, passkey, and OAuth handled by Proofable).
2. JavaScript: `@proofable/sdk` `client.verify()` signs and submits for signature-based verifiers; use VerifyGate for hosted/interactive verifiers.
3. Server gate checks: `GET /api/v1/proofs/check` with `gateId` or criteria before granting access.
4. Raw HTTP: two-phase signing below only when you cannot use the SDK or hosted flows.
Raw HTTP verification uses POST /api/v1/verification/standardize → sign signerString → POST /api/v1/verification with the same body plus signature. Session-authenticated callers may skip the signature when a valid session is present.
Use your deployment base URL (for example https://api.proofable.me). Some verifiers require pro access. Administrative endpoints are not included in this specification.
Versioning: public HTTP is `/api/v1` on https://api.proofable.me. Breaking changes ship as a new path version. The current public surface stays `/api/v1`. Deprecations are announced in the public changelog. Retired paths will send `Deprecation` and `Sunset` headers.
Machine-readable spec: https://api.proofable.me/openapi.json
Typed errors use the ErrorResponse object (`success`, `error.code`, `error.message`). See https://docs.proofable.me/api/errors.
Authentication: a server or agent sends a profile access key as `Authorization: Bearer npk_...`. A signed-in browser sends the `neus_auth` session cookie. Both resolve to the same profile. Wallet-signed reads use the `x-wallet-address`, `x-signature` and `x-signed-timestamp` headers documented on each operation. See https://docs.proofable.me/api/authentication.
Pay per call (x402): `POST /api/v1/verification` is an x402 payable resource. A request with no session, access key, app attribution or payment is answered `402` with the offer in the `PAYMENT-REQUIRED` header (scheme `exact`; price, network, asset and payTo are in the offer). Retry the same request with a `PAYMENT-SIGNATURE` header. A settled response carries `PAYMENT-RESPONSE`. Other `402` responses in this specification are credit or checkout refusals described on the operation, not x402 challenges.'
contact:
name: Proofable
url: https://docs.proofable.me
email: dev@proofable.me
license:
name: Proprietary. All rights reserved.
url: https://proofable.me/legal/terms-of-use
servers:
- url: https://api.proofable.me
description: Production API
security: []
tags:
- name: Agents
description: Import agents and run agent chat turns.
paths:
/api/v1/agents/import/preview:
post:
operationId: previewAgentImport
summary: Inspect an agent package, repository, card, or runtime link
tags:
- Agents
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: Inspected import preview
'400':
description: Invalid or unrecognized source
'401':
description: Authentication required
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'413':
description: Archive too large
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/agents/import/commit:
post:
operationId: commitAgentImport
summary: Map an inspected agent import onto identity registration
tags:
- Agents
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: Import mapped to identity registration
'400':
description: Preview missing or invalid
'401':
description: Authentication required
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/agent/chat/turn:
post:
operationId: streamAgentChatTurn
summary: 'Talk to an agent: run one chat turn as it, streamed as Server-Sent Events'
description: 'Runs one turn on the hosted agent runtime. With agentId the turn runs as that agent: its instructions and skills, under the delegation you signed, every tool call checked against it. Name agentWallet to talk to someone else''s public agent: it then runs in your own profile, on your records, and nothing of its owner''s is part of the conversation; with your app''s sponsor grant, your app pays. The final event carries the answer, the records it read as citations, and the credits it spent. Nothing to deploy: call it from any app or runtime with a session, an OAuth token or a profile access key.'
tags:
- Agents
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- messages
properties:
agentId:
type: string
description: Run the turn as this agent, under the delegation the caller signed for it.
agentWallet:
type: string
description: 'The agent''s account: when two of the caller''s agents share an agentId, or to talk to someone else''s public agent, which then runs in the caller''s own profile, with nothing of its owner''s in the conversation.'
messages:
type: array
description: The visible conversation; the last message is from the user.
items:
type: object
required:
- role
- content
properties:
role:
type: string
enum:
- user
- assistant
content:
type: string
model:
type: string
description: A hosted tier ("default", "advanced") or, with a provider, that provider's model id. Defaults to "default".
provider:
type: string
description: Omit for hosted inference; name a provider to run on your own key.
providerSecretProofQHash:
type: string
description: The vault secret holding your provider key.
systemPrompt:
type: string
description: Context from your app. With agentId it follows the agent's own instructions, as data.
responseMode:
type: string
enum:
- agent
- plan
turnId:
type: string
responses:
'200':
description: text/event-stream in the agent-turn-events/1 contract
'400':
description: Invalid turn request
'401':
description: Authentication required
'402':
description: Not enough credits for a hosted turn on the account that pays, or the sponsoring app has used its daily cap (SPONSOR_CAP_EXCEEDED)
'403':
description: No active delegation for this agent and no public agent of that id at agentWallet, Advanced without a paid plan, or a sponsor grant that was not accepted (SPONSOR_GRANT_INVALID)
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
required:
- success
- error
properties:
success:
type: boolean
enum:
- false
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
type:
type: string
details: {}
additionalProperties: true
timestamp:
$ref: '#/components/schemas/Timestamp'
requestId:
type: string
additionalProperties: true
Timestamp:
oneOf:
- type: string
format: date-time
- type: number
securitySchemes:
accessKey:
type: http
scheme: bearer
description: 'Profile access key (`npk_...`) created on a Proofable profile, sent as `Authorization: Bearer npk_...`. For servers, CI and agents.'
session:
type: apiKey
in: cookie
name: neus_auth
description: Browser session cookie set after sign-in on proofable.me.
externalDocs:
description: Proofable documentation
url: https://docs.proofable.me