Skip to main content
The Sapient API authenticates every request with a Bearer token. Your secret key looks like sk_live_… and must be sent in the Authorization header.

Get a key

  1. Sign in at thesapientcompany.com and open Settings → API. A paid plan (Pro at $149/mo or higher) is required to create a key; API usage itself is pay-as-you-go on top. See pricing.
  2. Click Create key. The secret (sk_live_…) is shown once, so copy it now.
  3. Send it as a Bearer token on every request.
Test keys start with sk_test_. Secrets are never recoverable. If you lose a key, revoke it in the portal and mint a new one.

Authorization header

curl https://www.thesapientcompany.com/api/v1/scans \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "input": { "type": "video", "video_url": "https://yourcdn.com/ad.mp4" } }'