Limits and usage
Rate limits, concurrency, monthly quotas, what happens at a limit, and the usage endpoint.
Your contract sets your organisation's limits. The numbers below are the defaults for an organisation without a contract; yours are returned by the usage endpoint.
Rate limits
| Limit | Applies to | Default (live) |
|---|---|---|
| Requests per key | Every request made with one key | 300 per minute |
| Requests per organisation | All keys in one environment together | 600 per minute (twice the per-key limit) |
| Chat requests | POST /v1/conversations/{id}/messages, per organisation | 60 per minute |
| Knowledge requests | The /knowledge/* ingestion endpoints, per organisation | 30 per minute |
| Concurrent replies | Replies being generated at the same time, per organisation | 5 |
- Test keys get a tenth of each live rate limit, with a floor of 10 per minute.
- Exceeding a rate limit returns
429 rate_limitedwithRetry-Afterin seconds. Exceeding concurrent replies returns429 concurrency_limit. - Every successful response carries
RateLimit-Limit,RateLimit-RemainingandRateLimit-Reset. See rate-limit headers. - Failed authentication is limited to 20 attempts per minute per IP address.
Monthly quotas
Quotas count live usage per calendar month (UTC). Test usage never counts against them. Heyllo may set a separate monthly token allowance for test keys; once it is used up, test replies are refused with 429 and code test_token_limit.
| Quota | What counts | Default |
|---|---|---|
| Messages | One per assistant reply | 1,000 per month |
| Model spend | Model cost of replies, in USD | $20 per month |
| Ingested words | Words added to knowledge bases | 200,000 per month |
| Workspaces | Workspaces that are not deleted | 10 |
| Bots per workspace | Bots in one workspace | 3 |
| Webhook endpoints | Endpoints per environment | 20 |
Your contract also sets which models your bots may use and whether the optional web_search and send_email tools are enabled. Asking for anything else returns 400 model_not_allowed or 400 tool_not_allowed.
What happens at a limit
- With hard stop on (the default), requests that would add usage are refused once a monthly quota is used up:
429with typequota_exceeded_errorand codemonthly_message_limit,monthly_cost_limitormonthly_ingest_limit. A single text or Q&A request that would go over the remaining ingestion allowance is refused the same way. - Read-only calls, conversation management and handoff calls keep working.
- Creating a workspace, bot or webhook endpoint beyond its cap returns
429with codeworkspace_limit,bot_limitorendpoint_limit. - Quotas reset at the start of the next calendar month (UTC), or as soon as your limit is raised.
Subscribe to the usage.threshold_reached webhook. It fires at 50, 80 and 100 percent of the message, spend and ingestion quotas, so you can act before your customers are affected.
Usage endpoint
GET /v1/usage returns month-to-date live usage for your organisation, your current limits and a breakdown per workspace. Pass period=YYYY-MM for another month. With a workspace-bound key, the totals cover that workspace only. Requires usage:read.
curl "https://api.heyllo.co/v1/usage?period=2026-11" \
-H "Authorization: Bearer $HEYLLO_API_KEY"{
"object": "usage",
"period": "2026-11",
"livemode": true,
"totals": {
"messages": "412",
"input_tokens": "703114",
"cached_input_tokens": "512400",
"output_tokens": "51920",
"cost_micros": "3412000",
"ingest_words": "18250"
},
"limits": {
"monthly_messages": 1000,
"monthly_cost_micros": "20000000",
"monthly_ingest_words": 200000,
"max_workspaces": 10,
"max_bots_per_workspace": 3,
"max_concurrent_streams": 5,
"requests_per_minute": 300,
"chat_requests_per_minute": 60,
"hard_stop": true
},
"workspaces": [
{
"workspace": "ws_4hT8kQ2mZx7LpR1vN9cW3yBd",
"messages": "412",
"input_tokens": "703114",
"cached_input_tokens": "512400",
"output_tokens": "51920",
"cost_micros": "3412000",
"ingest_words": "18250"
}
]
}- Usage values are strings holding whole numbers, so large counts stay exact.
cost_microsis in millionths of a US dollar:3412000is $3.412.- A message is counted, with its tokens and cost, only when a reply was delivered. A turn that fails or times out on our side is not billed.
input_tokensis the whole prompt, includingcached_input_tokens: the part read from the model provider's prompt cache, which costs less.cost_microsis what the provider billed for every model call made for your conversations: each step of the agent (tool and action calls included), knowledge and memory searches, and summaries of long conversations. Completed knowledge jobs addingest_wordsand the cost of preparing the content.- Bots in your workspaces are metered on every channel (the API, the website widget, WhatsApp, Messenger and Instagram), and the monthly limits apply to all of them.
- A
nulllimit means no limit.workspacesonly lists workspaces with usage in the period.