Skip to main content

Why is there a portalUrl in an Enso error?

Auth, rate-limit, and quota errors can include a portalUrl field that points to the Developer Portal so you can send the user there to manage keys or plan upgrades.

J
Written by Javier Diaz

Auth, rate-limit, and quota errors can include a portalUrl field that points to the Developer Portal, so you can send the user there to manage keys or plan upgrades.

Definition

portalUrl is a URL in the error payload, not a routing field. It exists so your app does not have to hardcode a portal address for those recovery flows.

How it works

  • 401 errors (invalid_api_key or legacy_key_retired) can include portalUrl so the user can create or recover a key.

  • 429 errors for the request-per-second limit or the monthly credit quota include portalUrl for key management and plan upgrades.

  • 403 account_blocked responses should also be handled with the error message and any portal link provided.

  • When portalUrl is present, prefer it over a hardcoded URL. The portal itself is developers.enso.build.

How Enso does this

Authentication documents portalUrl on auth errors and on rate-limit and quota errors. Use it in your error UI alongside the error field, and do not treat portalUrl as evidence that a transfer failed on-chain.

FAQ

Does every Enso error include portalUrl?

No. It is documented on authentication, rate-limit, and quota errors. A routing error such as “Could not build shortcuts for route” is a different class of failure.

Should I open portalUrl automatically?

You can show it as a link. Sending the user to the Developer Portal is the documented next step for those errors.

Related articles

  • What does invalid_api_key mean?

  • Why did the Enso API return 429?

  • What happens if I exceed my monthly API credits?

  • Why did the Enso API return 401?

  • How do I get an Enso API key?

Sources

Did this answer your question?