judge.tenetlabs.com carries an Authorization: Bearer header. The bearer is either an API key (sk_tenet_…) or a token minted from M2M credentials.
Use an API key unless Tenet issued you M2M credentials.
Get an API key
1
Sign up
Go to platform.tenetlabs.com and continue with Google or GitHub.
2
Copy the key
On the dashboard, select View key. That creates your first key, named
default, and shows it once. Copy it then; if you lose it, revoke it on API Keys and create a new one.3
Add keys as you need them
On API Keys, create one key per workload (e.g.
prod-agent) and revoke keys you no longer use. Revoked keys stop working within seconds.SDK setup
from_env() uses whichever credentials are set. It raises ValueError if both TENET_API_KEY and the M2M pair are set.
A rejected key or a failed token mint raises JudgeUnavailableError, the same as a network failure. Your policy decides what happens next.
Raw HTTP
With an API key
Send the key as the bearer:surface names the kind of recruiting action being checked — here a job-ad edit, hence job_ad_drafting. Pick it per request, not per application: Surfaces.
An unknown or revoked key returns 401 with code: "INVALID_API_KEY".
API keys work on POST /decide, POST /decide/stream and POST /voice/decide/stream. GET /v1/config and GET /ready require an M2M token.
With M2M credentials
Mint a token with theclient_credentials grant:
-H "Authorization: Bearer $TOKEN".
Cache the token until expiry and reuse it — don’t mint per request. A missing or invalid token returns 401.