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
| Key | Where it belongs | What it can do |
|---|---|---|
pk_… public | Page code, session-manifest requests | Identify the project. Cannot score or reveal anything. |
sk_… secret | Your backend secret environment | Authenticate 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.
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.
curl "https://app.volance.com/api/trace/session" \
--header "Authorization: Bearer $VOLANCE_PUBLIC_KEY"
{
"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.
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
{
"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
| Field | What it tells you |
|---|---|
score | A 0–100 estimate of human-likeness. Not a probability; not proof of identity. |
band / verdict | The score range and its contract name. |
action | The recommended response: allow, flag, or block. Your server decides. |
overrides | Hard findings that capped the score, even when the cap did not lower it. |
signals | Every check, whether it fired, and what it read. |
cascade | Whether the middle needs more evidence, and which checks to run next. |
requestId | The 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
- Collector & consent — the full collector boundary
- Scoring & verdicts — how to read the response
- Integrations — the relay in your framework
- Errors & limits — what to do when the call fails
Integration checklist
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.