Skip to main content

How do I get an Enso API key?

Create a key in the Enso Developer Portal, store it privately, and verify it with the account endpoint before building routes.

J
Written by Javier Diaz

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

  1. Open the Developer Portal and create a key.

  2. 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.

  3. Verify it with GET https://api.enso.build/api/v1/account/accountId using Authorization: Bearer <API_KEY> or the apikey query parameter.

  4. If you receive 401 with invalid_api_key or legacy_key_retired, create or replace the key in the portal. Those errors include a portalUrl.

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?

Sources

Did this answer your question?