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

The server-side scoring plane and the portal plane are separate.
EndpointPurposeAuthentication
POST /api/trace/scoreScore session evidence.Secret sk_
GET /api/trace/sessionGet a signed session manifest.Public pk_
POST /api/trace/verify-tokenVerify a trust token (single use).Secret sk_
POST /api/trace/verify-stepupVerify a PoW + jitter step-up challenge for ambiguous sessions (single use).Secret sk_
GET/POST /api/trace/configRead or update policy and custom allow/block thresholds.Secret sk_
GET /api/trace/usageRead plan and quota state (never metered).Secret sk_
GET /api/trace/http-message-signatures-directoryVolance’s Web Bot Auth public keys.None
POST /api/trace/agent/decideAgent allow / charge / block decision.Public pk_
POST /api/trace/agent/iouVerify a signed IOU.Public pk_
GET /api/trace/agent/iou/jwksIOU signing keys.None
POST /api/trace/agent/settlementReport 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.
  • requestId is the join key between a scoring response, your logs, and the portal session.
  • Only a successful 200 score 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

Free to start. 10,000 scores a month, one project, no credit card.

Get started free