Authenticate with the EvalGate API
Every platform request requires an API key. SDK clients also need an organization ID when they create org-scoped resources such as traces and evaluations.Create an API key
API keys are created from the Developer Dashboard. You need an EvalGate account before you begin.Open the Developer Dashboard
Sign in to your EvalGate account and navigate to the Developer Dashboard. Scroll down to the API Keys section.
Create the key
Click Create API Key. Enter a descriptive name such as
Development Key or CI Pipeline, select the scopes you need, then click Create Key.Use the API key in HTTP requests
Include your API key as a Bearer token in theAuthorization header:
https://evalgate.com.
Configure environment variables
Store credentials as environment variables so neither the SDK nor your code needs to hardcode them..env
organizationId field.
SDK auto-loading
Both the TypeScript and Python SDKs readEVALGATE_API_KEY and EVALGATE_ORGANIZATION_ID automatically when you call .init() with no arguments.
Authentication errors
If a request fails with401 Unauthorized, check that:
- The
Authorizationheader is present and formatted asBearer YOUR_API_KEY. - The key was copied in full.
- The key has not been deleted from the Developer Dashboard.
- The key scopes include the operation you’re attempting.
Security best practices
Treat your API key like a password. Anyone who has it can make requests on behalf of your organization.
.env to your .gitignore file before creating it:
Rate limits
All API keys are subject to rate limits. If your integration receives429 Too Many Requests, see the rate limits reference for per-plan limits and backoff guidance.