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
Create a key in the Developer Portal and store it server-side.
Send
Authorization: Bearer <API_KEY>, or appendapikey=<API_KEY>to the query string.Confirm the key with
GET https://api.enso.build/api/v1/account/accountId.Handle
401(invalid_api_keyorlegacy_key_retired) by replacing the key, and403(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?
