Skip to main content
Clausum uses Bearer authentication:
Authorization: Bearer <your_key_or_token>
Partner API requests target your assigned API base URL ($CLAUSUM_API_BASE). Clausum support delivers the hostname when your workspace is provisioned — see Access & environments.

Three key types (plain names)

In the dashboard (Integraciones → Claves de integración) you will see friendly labels. The prefix on the key is technical only.
You need…Dashboard namePrefixTypical use
Risk before payment in web/appCheckout (browser)clm_pub_SDK, POST /api/v1/assess from client
Backend integrationServer (backend)clm_sk_Assess, report fraud, merchant API
Pipe events into ClausumEvent ingestclm_wh_POST /api/webhooks/ingest only

Checkout

clm_pub_* — limited to assessment. Safe in the browser.

Server

clm_sk_* — server only. Never ship to clients.

Event ingest

clm_wh_* — not for checkout or merchant API.
Create and revoke keys under Integraciones → Claves de integración in the sandbox app (or your assigned hostname).
Clausum shows each key once at creation. Store it in a secrets manager. Revocation in the dashboard is immediate.

Using a key

curl "$CLAUSUM_API_BASE/api/v1/assess" \
  -H "Authorization: Bearer clm_sk_xxx" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 1000, "currency": "USD" }'
Prefer the Authorization header over api_key query parameters (query strings may appear in logs).

Permissions (server keys)

Permissions look like resource:action (e.g. fraud:report). * means full access for that key type.
EndpointKey typePermission
POST /api/v1/assessCheckout or serverassess (or *)
POST /api/v1/report-fraudServer onlyfraud:report
GET/POST /api/v1/merchant/*Server onlye.g. transactions:read
POST /api/webhooks/ingestEvent ingest (clm_wh_)valid ingest key

Dashboard session (not API keys)

Dashboard routes (blocklists, cases, team, …) use a Supabase JWT after sign-in at sandbox.clausum.ai, not clm_pub_ / clm_sk_.

Errors

StatusMeaning
401Missing, invalid, disabled, or revoked key
403Wrong key type (e.g. checkout key on merchant API) or missing permission
429Rate limit exceeded
See Errors and API keys.