Skip to main content
Every request to 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.
Sign-up requires a person. If an agent is doing the integration, create the key yourself and give it to the agent through an environment variable or secrets manager.

SDK setup

from_env() uses whichever credentials are set. It raises ValueError if both TENET_API_KEY and the M2M pair are set.
Call warmup() (or await warmup_async()) at process start. With M2M credentials it mints the token up front, so the first tool call doesn’t wait on a token mint. With an API key it does nothing.
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 the client_credentials grant:
Send it as the bearer: the same request as above, with -H "Authorization: Bearer $TOKEN". Cache the token until expiry and reuse it — don’t mint per request. A missing or invalid token returns 401.

Environment variables