Skip to content

Authentication

Teler uses API key authentication. Every request to the Teler API, whether direct HTTP, SDK-mediated, or via a Bridge recipe, must include your API key in the X-API-Key header.

  1. Sign in to the Teler dashboard.
  2. Navigate to API keys.
  3. Create a key, copy it, and store it somewhere safe.

Every request includes the key in the X-API-Key header.

Terminal window
curl https://api.frejun.ai/api/v1/voice/calls/initiate \
-H "Content-Type: application/json" \
-H "X-API-Key: $TELER_API_KEY" \
-d '{ ... }'

The SDK constructors throw a BadParametersException if the key is empty. A bad or revoked key produces a 403 Forbidden (detail: Invalid API Key.), which the SDKs surface as ForbiddenException. A missing X-API-Key header produces a 422 Unprocessable Entity (the required header is absent).

Each Teler account currently has a single API key, generated once at signup. There is no self-serve key-management API and no multi-key overlap, so there is no zero-downtime rotation. Treat the key as a secret.

If the key is leaked, regenerate it from the dashboard. Regenerating replaces the old key immediately — the old value stops working the moment the new one is issued. Because there is no overlap window, plan a brief coordinated cutover: update TELER_API_KEY across all your services at rotation time so traffic switches to the new key together.

DoDon’t
Read from environment variables (TELER_API_KEY)Hard-code keys in source
Store in your secrets manager (Vault, AWS Secrets Manager, Doppler, etc.)Commit .env files to Git
Restrict who can read them in your CI/CDSend keys in URLs (they get logged)
Rotate on staff offboardingReuse the same key for sandbox and production

Because each account has exactly one key, environment isolation means using a separate Teler account per environment — and therefore a separate key. That way you can regenerate a leaked staging key without touching production:

EnvTeler accountKey variable
Local devDev accountTELER_API_KEY (your laptop)
StagingStaging accountTELER_API_KEY (staging secrets)
ProductionProduction accountTELER_API_KEY (prod secrets, locked down)
SymptomCauseFix
403 Forbidden from any endpointInvalid or revoked API keyVerify X-API-Key header is present and correct
422 Unprocessable EntityThe X-API-Key header is missing entirelyEnsure the header is being sent (some proxies strip custom headers)
SDK BadParametersException at construct timeEmpty string passed inConfirm TELER_API_KEY env var is set