Skip to main content

How do I authenticate Enso API requests?

Send your Developer Portal API key as an Authorization Bearer token or as an apikey query parameter, and verify it with the account endpoint.

J
Written by Javier Diaz

Authenticate Enso API requests by sending your Developer Portal API key as an Authorization: Bearer token or as an apikey query parameter. Verify the key with the account endpoint before you build routes.

Definition

Authentication proves which account is calling the API. Without a valid key, Route, Bundle, and related calls do not run. A 401 is an authentication failure, not a routing failure.

How it works

  1. Create a key in the Developer Portal and store it server-side.

  2. Send Authorization: Bearer <API_KEY>, or append apikey=<API_KEY> to the query string.

  3. Confirm the key with GET https://api.enso.build/api/v1/account/accountId.

  4. Handle 401 (invalid_api_key or legacy_key_retired) by replacing the key, and 403 (account_blocked) as disabled access, not a typo.

Do not embed the key in a public client or commit it to source control.

How Enso does this

Both auth methods and the account check are documented in Authentication. The canonical API host is https://api.enso.build. Rate-limit and quota errors return 429 and include a portalUrl for key and plan management.

FAQ

Which auth method should I use?

Either works. The Bearer header is the usual server-side choice. The apikey query parameter is useful for quick checks.

Can I use a retired legacy key?

No. Create a new key in the Developer Portal.

Related articles

  • How do I get an Enso API key?

  • Why did the Enso API return 401?

  • Why did the Enso API return 429?

  • How do I get started with Enso?

  • What is the Enso API?

Sources

Did this answer your question?