Documentation Index
Fetch the complete documentation index at: https://evalgate.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authenticate with the Evalgate API
Create an API key, set your environment variables, and make your first authenticated request to the Evalgate platform in under two minutes.Every request to the Evalgate platform — whether from the SDK or directly against the REST API — requires an API key. This page explains how to create one, where to put it, and how the SDK picks it up automatically so you don’t have to pass it on every call.
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 — for example,
Development Key or CI Pipeline — so you can identify it later. Select the scopes you need (start with all scopes for initial testing), then click Create Key.Copy the key immediately
Your API key is displayed only once. Copy it and store it in a secure location — a password manager, your CI secrets store, or a local
.env file — before closing the dialog.The dialog also shows your Organization ID. Save that value alongside your key — the SDK requires both to identify your account.Use the API key in HTTP requests
Include your API key as a Bearer token in theAuthorization header on every request to the Evalgate API.
https://evalgate.com.
A full request looks like this:
Configure environment variables
Store your credentials as environment variables so neither the SDK nor your code needs to hardcode them..env
SDK auto-loading
Both the TypeScript and Python SDKs readEVALGATE_API_KEY and EVALGATE_ORGANIZATION_ID from the environment automatically when you call .init() with no arguments.
Authentication errors
If a request fails with a401 Unauthorized response, the API key is either missing, incorrect, or has been revoked. Check the following:
- The
Authorizationheader is present and formatted asBearer YOUR_API_KEY. - The key was copied in full — keys starting with
sk_are case-sensitive. - The key has not been deleted from the Developer Dashboard.
- The scopes on the key 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 responses, you are exceeding the allowed request rate for your plan. See the rate limits reference for per-plan limits and guidance on handling backoff.