Documentation / Quickstart

First score in seven steps.

This is the shortest path from an empty workspace to a real session score. It uses the browser collector for evidence and your backend for the scoring call.

Last updated

One rule before you start. The public pk_ key may appear in page code. The secret sk_ key must not. The browser sends evidence to your own backend; your backend calls the scoring endpoint.

1. Create a workspace

Sign up at app.volance.com/signup, verify your email, and open the workspace that is provisioned for you. A workspace owns its key pair, allowed origins, policy, sessions, usage, members, and audit trail.

2. Copy the two keys

The portal Setup tab shows both. The secret is masked until you re-authenticate.
KeyWhere it belongsWhat it can do
pk_… publicPage code, session-manifest requestsIdentify the project. Cannot score or reveal anything.
sk_… secretYour backend secret environmentAuthenticate scoring and configuration calls. Never ship it to a browser.

3. Install the collector

The collector is an inert ES module. Importing it does nothing; collection starts only when your consent flow calls start.

trace.jsInstall and start
import { createSiteCollector } from 'https://app.volance.com/trace.js';

const collector = createSiteCollector({ fingerprints: false });

// Your consent flow decides when this is allowed.
collector.start({ consent: true });

// On submit or when the interaction ends:
const evidence = collector.stop();
// POST evidence to YOUR backend, which relays it with sk_.

4. Get a session manifest

Your backend asks for a short-lived signed manifest with the public key. The manifest is a capability to submit evidence, not an identity.

GET /api/trace/sessionServer-side
curl "https://app.volance.com/api/trace/session" \
  --header "Authorization: Bearer $VOLANCE_PUBLIC_KEY"
ResponseSession + manifest
{
  "sessionId": "8f3c...",
  "manifest": "signed-token...",
  "collect": { "...": "workspace collection settings" }
}

5. Score from your server

Relay the collector snapshot plus the visitor context your edge already has. The request fields are publicKey, sid, manifest, page, clientSignals, events, and optional requestSignals.

POST /api/trace/scoreRelay example
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
score.jsonThe shape your relay sends
{
  "publicKey": "pk_...",
  "sid": "8f3c...",
  "manifest": "signed-token...",
  "page": "/checkout",
  "clientSignals": { "webdriver": false },
  "events": [{ "type": "pointerdown", "t": 120 }],
  "requestSignals": {
    "visitorIp": "203.0.113.9",
    "cookiePresent": true,
    "visitorUserAgent": "Mozilla/5.0 ...",
    "acceptLanguage": "en-US,en;q=0.9"
  }
}

6. Read the response

Start with the band and action, then read the evidence.
FieldWhat it tells you
scoreA 0–100 estimate of human-likeness. Not a probability; not proof of identity.
band / verdictThe score range and its contract name.
actionThe recommended response: allow, flag, or block. Your server decides.
overridesHard findings that capped the score, even when the cap did not lower it.
signalsEvery check, whether it fired, and what it read.
cascadeWhether the middle needs more evidence, and which checks to run next.
requestIdThe id that joins this response to your logs and the portal session.

7. Stay in monitor mode

Scoring starts with enforcement disabled. Log the verdicts, compare them with what you know about the traffic, and only then let your policy act. The scoring guide explains the bands; the operations guide covers timeouts and fallbacks.

What “done” looks like

  • A real session appears in the portal with a score and a requestId.
  • The browser bundle contains no sk_ value.
  • The collector never starts before consent.
  • The policy is still in monitor mode, and you can explain the first decision.

Related

Take the integration checklist with you.

Ten steps from the first workspace to a monitor-mode decision, with the key and privacy boundaries.

Prefer to read it now? Open the starter kit without email.