Rate limits

Kustomer's org-wide request limits by plan, search and webhook limits, per-object update limits, rate-limit headers, and how to stay under them.

Kustomer limits how many API requests an org can make per minute, and how often a single record can be changed. Limits protect your org's performance for agents. When you exceed one, the API returns 429 Too Many Requests until the window resets.

InteractiveThe per-minute request budget
0used of 1000
resets in 60s
HTTP/1.1 200 OK
x-ratelimit-limit: 1000
x-ratelimit-remaining: 1000
x-ratelimit-reset: now + 60s
■ accepted 0■ 429 0
Simplified model of one org's budget. All API keys and app users in the org draw from it. Workflows and business rules don't count against it.

Org-wide API limit

Requests made with machine-user tokens count toward one shared budget for your org, measured over 60 seconds. Machine-user tokens are API keys, and OAuth tokens issued with the offline_access scope. Every one of them draws from the same budget, including bulk requests and paginated requests. People signed in to Kustomer, and OAuth tokens that act as them, have their own per-user limit instead (see below).

PlanRequests per minute
Enterprise1,000
Ultimate2,000
Business (legacy)500
Professional (legacy)300

Workflows and business rules running inside Kustomer don't count against this limit.

Other request limits

WhatLimit
Search requests by machine users (API keys)100 per minute
Search requests by people using KustomerNot limited
Requests by people using Kustomer (human app users)1,000 per minute
Inbound webhooks and form hooks1,000 per minute (Enterprise) or 2,000 per minute (Ultimate)
Inbound webhook and form hook body size400 KB
Outbound WhatsApp messages300 per minute per user
Workflow executions1,000 per 30 seconds per event type

Kustomer's built-in integrations aren't subject to your org's limit. Inbound email has its own sender protection: 120 emails per hour from the same address.

Object limits

To stop runaway loops, Kustomer also limits how often one user (or one API key) can change a single record, no matter how much of your budget is left:

WhatLimit
Updates to one conversation, company, message or other object100 per 10 minutes
Updates to one customer through the API600 per 10 minutes
New drafts, messages, conversations, notes or KObjects for one customer120 per minute

Records created with importedAt skip the per-customer create limit, so historical imports aren't throttled by it. They still count toward the org-wide limit.

Headers

Every response that counts toward a limit reports your budget:

HeaderMeaning
x-ratelimit-limitRequests allowed in the current window
x-ratelimit-remainingRequests left in the current window
x-ratelimit-resetWhen the window resets, in UTC epoch seconds. Sent only on the 429.
HTTP
HTTP/1.1 429 Too Many Requests
x-ratelimit-limit: 1000
x-ratelimit-remaining: 0
x-ratelimit-reset: 1761058860

Writes that an object limit applies to also report that limit, so you can tell which one a 429 came from:

HeaderMeaning
x-ratelimit-object-limitChanges allowed to this record in the current window
x-ratelimit-object-remainingChanges left for this record
x-ratelimit-object-resetWhen the record's window resets, in UTC epoch seconds. Sent only on the 429.

Handling 429s

  1. Wait for the reset

    On a 429, sleep until x-ratelimit-object-reset if it's there, since an object limit can last 10 minutes, and otherwise until x-ratelimit-reset. Then retry. Add a little random jitter so parallel workers don't all retry at the same instant.

  2. Slow down before you hit the limit

    Watch x-ratelimit-remaining. When it falls below about 10% of the limit, spread the requests you have left over the rest of the minute.

  3. Share the budget

    If several services use the same org, give each a share (for example, 40% for the nightly sync and 20% for webhooks), and run them through a shared limiter or queue.

Node.js
class KustomerLimiter {
  private remaining = Infinity

  async request(url: string, init: RequestInit): Promise<Response> {
    if (this.remaining < 25) await sleep(60_000 / Math.max(this.remaining, 1))
    const res = await fetch(url, init)
    if (res.status === 429) {
      // An object limit sends its own reset, which can be minutes later than the org's.
      const reset = Number(res.headers.get('x-ratelimit-object-reset') ?? res.headers.get('x-ratelimit-reset') ?? 0) * 1000
      this.remaining = Infinity
      await sleep(Math.max(reset - Date.now(), 1000) + Math.random() * 500)
      return this.request(url, init)
    }
    this.remaining = Number(res.headers.get('x-ratelimit-remaining') ?? Infinity)
    return res
  }
}

const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms))

Using fewer requests

  • Bulk endpoints. Create or update up to 100 records in one job. See Bulk operations.
  • Bigger pages. Use the largest pageSize the endpoint allows.
  • include. Side-load related records instead of fetching them one by one.
  • Webhooks over polling. Let Kustomer tell you what changed. See Outbound webhooks.
  • Skip no-op writes. Compare before you update. It saves budget and avoids object limits.
  • idsOnly searches. Return just the IDs when that's all you need.