POST /v1/sessions
Send the session token from your server. Authenticate with your secret key in the Authorization header. Responses return in under a millisecond at p50, served from the region set for your team (US or EU).
// request
POST https://api.cloaktrace.ai/v1/sessions
Authorization: Bearer sk_live_xxx
{ "token": "ct_tok_...", "event": "checkout", "account_id": "acct_10492" }Response
{
"device": { "id": "dev_9c02be", "confidence": 0.96 },
"environment": { "authenticity": 0.18, "spoofing_probability": 0.87 },
"actor": { "human": 0.07, "automation": 0.28, "ai_agent": 0.62 },
"network": { "proxy_probability": 0.88, "residential_proxy_probability": 0.71 },
"behavior": { "anomaly": 0.64 },
"relationships":{ "accounts": 18, "related_devices": 43 },
"risk": { "score": 0.78, "evidence": [ /* ... */ ] }
}Fields
| Field | Type | Meaning |
|---|---|---|
device.id | string | Persistent device identity, stable across cleared storage and browser changes. |
environment.authenticity | 0-1 | Probability the environment is genuine rather than presented. |
actor.* | 0-1 | Distribution across human, automation and AI agent. |
risk.score | 0-1 | Composite risk, tuned per customer. Your thresholds, your decision. |
Errors and limits
Standard HTTP status codes. 401 for a bad key, 422 for an expired token, 429 only for abuse protection. There is no fixed per-second rate limit on any plan, including Free.