Skip to main content

API Keys

All requests to the /v1/agent/lookup endpoint require a valid API key passed via the Authorization header using the Bearer scheme.
Authorization: Bearer YOUR_API_KEY

Creating a key

  1. Go to encrata.com/api-keys
  2. Click Create Key
  3. Copy the key — it’s only shown once

Key behavior

BehaviorDetail
FormatOpaque string
ScopeTied to your user account
RevocationInstant — revoked keys are rejected immediately
Usage trackingEvery request is logged with credits consumed and response time

Error responses

If authentication fails, the API returns:
{
  "c": 401,
  "m": "bad key"
}
Keep your API key secret. Do not commit it to version control or expose it in client-side code.