Skip to main content
The Tokenomist API authenticates every request with an API key sent in a request header. All requests must be made over HTTPS.
Don’t have a key yet? See Setting up your API key.

Base URL

The previous domain https://api.unlocks.app still works, but we recommend updating integrations to https://api.tokenomist.ai.

Authenticating a request

Send your key in the x-api-key header on every request:
Keep your API key server-side. Don’t embed it in client-side code or expose it in URLs, logs, or browser history.

Failed authentication

A request without a key is rejected with 401 Unauthorized (x-api-key not found). An unknown or revoked key gets 403 with the message You are not authorized to access this resource. Neither is counted against your quota. See Rate limits, quotas & errors for the full error reference.
The quota state returned in metadata.credit only appears on authenticated requests. Unauthenticated requests do not include it.