Create an Enso API key in the Developer Portal, store it privately, and verify it with the account endpoint before you build routes.
Definition
An API key is the credential that authenticates your requests to the Enso API. It identifies your account and is required for Route, Bundle, and related data calls.
How it works
Open the Developer Portal and create a key.
Store it in an environment variable or a server-side secret store. Never commit it to source control or embed it in a public client.
Verify it with
GET https://api.enso.build/api/v1/account/accountIdusingAuthorization: Bearer <API_KEY>or theapikeyquery parameter.If you receive
401withinvalid_api_keyorlegacy_key_retired, create or replace the key in the portal. Those errors include aportalUrl.
The default rate limit is 10 requests per second (600 per minute) and can be increased on demand.
How Enso does this
Keys are issued and managed in the Developer Portal. Authentication, the account check, rate limits, and credit headers are documented in Authentication. For help, join the Telegram developer chat.
FAQ
Can I use a retired legacy key?
No. Retired legacy keys return 401 with error: "legacy_key_retired". Create a new key in the Developer Portal.
Does a failed auth check consume API credits?
Requests rejected before they are processed, including an invalid key, are not charged and do not include x-enso-credits-request.
Related articles
How do I authenticate Enso API requests?
How do I get started with Enso?
Why did the Enso API return 401?
What is the default Enso API rate limit?
What is the Enso API?
