Enso API responses can include credit-usage headers so you can track the cost of each call and your monthly quota. They are separate from the default 10-request-per-second rate limit.
Definition
Credit headers report how many credits a request consumed, how many have been used this month, the monthly limit, what remains, when the quota resets, and the plan identifier.
How it works
x-enso-credits-requestis the credits charged for this request.x-enso-credits-usedis credits used this month as of when your key was last validated. It can lag by up to a minute and does not include the current request.x-enso-credits-limitis the monthly quota;x-enso-credits-remainingis the limit minus used, never below zero.x-enso-credits-resetis a Unix timestamp (seconds) for the start of the next UTC month.x-enso-planis your plan identifier.
How Enso does this
These headers are documented in Authentication. Requests rejected before they are processed — an invalid key, a rate limit, or an exceeded quota — are not charged and do not include x-enso-credits-request. You can inspect the headers on a simple account-id call.
FAQ
Is a credit-quota 429 the same as the 10 RPS limit?
No. Both return HTTP 429, but one is monthly credits and the other is requests per second. Use the payload, portalUrl, and these headers to tell them apart.
Do failed auth requests consume credits?
No. Invalid-key, rate-limit, and exceeded-quota rejections that happen before processing are not charged.
Related articles
What happens if I exceed my monthly API credits?
What is the default Enso API rate limit?
Why did the Enso API return 429?
Why is there a portalUrl in an Enso error?
How do I authenticate Enso API requests?
