← Back to API Docs

Getting Started in 5 Minutes

Get your key, log an event, read a score, and run preflight policy checks.

1. Create key

curl -X POST "https://clawtrustscores.com/v1/users" \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'

2. Log event

curl -X POST "https://clawtrustscores.com/v1/events" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_KEY" \
  -d '{"agentId":"agent:demo:1","kind":"positive","eventType":"completed_task_on_time"}'

3. Read trust score

curl "https://clawtrustscores.com/v1/score?agentId=agent:demo:1" \
  -H "x-api-key: YOUR_KEY"

4. Preflight decision

curl -X POST "https://clawtrustscores.com/v1/integrations/clawcredit/preflight" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_KEY" \
  -d '{"agentId":"agent:demo:1","amountUsd":2500,"newPayee":true,"firstTimeCounterparty":true}'