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

LimitApplies toDefault (live)
Requests per keyEvery request made with one key300 per minute
Requests per organisationAll keys in one environment together600 per minute (twice the per-key limit)
Chat requestsPOST /v1/conversations/{id}/messages, per organisation60 per minute
Knowledge requestsThe /knowledge/* ingestion endpoints, per organisation30 per minute
Concurrent repliesReplies being generated at the same time, per organisation5
  • Test keys get a tenth of each live rate limit, with a floor of 10 per minute.
  • Exceeding a rate limit returns 429 rate_limited with Retry-After in seconds. Exceeding concurrent replies returns 429 concurrency_limit.
  • Every successful response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-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.

QuotaWhat countsDefault
MessagesOne per assistant reply1,000 per month
Model spendModel cost of replies, in USD$20 per month
Ingested wordsWords added to knowledge bases200,000 per month
WorkspacesWorkspaces that are not deleted10
Bots per workspaceBots in one workspace3
Webhook endpointsEndpoints per environment20

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: 429 with type quota_exceeded_error and code monthly_message_limit, monthly_cost_limit or monthly_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 429 with code workspace_limit, bot_limit or endpoint_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.

Shell
curl "https://api.heyllo.co/v1/usage?period=2026-11" \
  -H "Authorization: Bearer $HEYLLO_API_KEY"
Response
{
  "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_micros is in millionths of a US dollar: 3412000 is $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_tokens is the whole prompt, including cached_input_tokens: the part read from the model provider's prompt cache, which costs less. cost_micros is 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 add ingest_words and 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 null limit means no limit. workspaces only lists workspaces with usage in the period.