Documentation / API
The API, endpoint by endpoint.
JSON in, JSON out. The scoring endpoint authenticates with a secret key, the session endpoint with a public key, and every error has a defined shape.
Last updated
Endpoints
| Endpoint | Purpose | Authentication |
|---|---|---|
POST /api/trace/score | Score session evidence. | Secret sk_ |
GET /api/trace/session | Get a signed session manifest. | Public pk_ |
POST /api/trace/verify-token | Verify a trust token (single use). | Secret sk_ |
POST /api/trace/verify-stepup | Verify a PoW + jitter step-up challenge for ambiguous sessions (single use). | Secret sk_ |
GET/POST /api/trace/config | Read or update policy and custom allow/block thresholds. | Secret sk_ |
GET /api/trace/usage | Read plan and quota state (never metered). | Secret sk_ |
GET /api/trace/http-message-signatures-directory | Volance’s Web Bot Auth public keys. | None |
POST /api/trace/agent/decide | Agent allow / charge / block decision. | Public pk_ |
POST /api/trace/agent/iou | Verify a signed IOU. | Public pk_ |
GET /api/trace/agent/iou/jwks | IOU signing keys. | None |
POST /api/trace/agent/settlement | Report a settlement. | Secret sk_ |
Authentication
Authorization: Bearer sk_…for scoring, config, usage, and settlement. Server-side only.Authorization: Bearer pk_…for session manifests and agent decisions. May appear in page code.- No auth for the public key directories.
Conventions
- Requests and responses are JSON.
- Errors are
{ "error": "human-readable sentence" }with a 4xx/5xx status. requestIdis the join key between a scoring response, your logs, and the portal session.- Only a successful
200score is metered. 4xx and 429 are not billable.
Start with scoring
POST /api/trace/scoreMinimal request
curl --request POST "https://app.volance.com/api/trace/score" \
--header "Authorization: Bearer $VOLANCE_SECRET_KEY" \
--header 'Content-Type: application/json' \
--data-binary @score.json
Read the score endpoint for every field, then the errors page for the failure paths. The session manifest is the other half of a browser integration.
Related
- Score a session — the main endpoint
- Session manifest — the browser half
- Errors & limits — what can go wrong
- Quickstart — a first integration