API reference

One endpoint. Intelligence, not raw telemetry.

The fraud detection API you integrate once. POST a session, receive device identity, environment authenticity, an actor distribution, network intelligence and a risk score with evidence.

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).

HTTP
// request
POST https://api.cloaktrace.ai/v1/sessions
Authorization: Bearer sk_live_xxx
{ "token": "ct_tok_...", "event": "checkout", "account_id": "acct_10492" }

Response

JSON
{
  "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

FieldTypeMeaning
device.idstringPersistent device identity, stable across cleared storage and browser changes.
environment.authenticity0-1Probability the environment is genuine rather than presented.
actor.*0-1Distribution across human, automation and AI agent.
risk.score0-1Composite 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.