Documentation / Concepts

A short-lived token for the server side.

A trust token is a compact way to carry a scoring result forward without re-sending the whole evidence payload. It is verified server-side, single use, and still an estimate.

Last updated

What it is

A scoring response can include a trust token. Your server verifies it with POST /api/trace/verify-token. The token is not a password and not proof of identity; it records that a scoring result existed for a session.

Verify it

POST /api/trace/verify-tokenServer-side
curl --request POST "https://app.volance.com/api/trace/verify-token" \
  --header "Authorization: Bearer $VOLANCE_SECRET_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"trustToken":"tr_..."}'
ResponseValid and single use
{
  "valid": true,
  "score": 43.0,
  "verdict": "suspicious_agent"
}

Rules

  • Single use. A token verifies once. Do not cache a valid result as a permanent pass.
  • Short-lived. The token expires quickly; treat an expired token as absent.
  • Server-side only. The verification call uses the secret key. Never put the secret in the browser.
  • Not an identity. A valid token says a score existed; it does not prove a person was present.

Failure modes

What a failed verification means for your policy.
ResultMeaningReasonable response
InvalidThe token is malformed, expired, or already used.Fall back to a fresh score or a step-up.
Valid, mid-bandThe token verifies, but the original reading was ambiguous.Treat it as the same graded estimate; do not upgrade it to a pass.
MissingNo token was issued for this session.Score the request or apply your default policy.

When to use it

Use a trust token when a later server-side step needs the result of an earlier score — a checkout after a signup, or a webhook after a form. If you need the full evidence, keep the requestId and read the session in the portal instead.

Related

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

Get started free