Skip to main content

Rate limits

Each API key has a per-minute request budget.

Limits

Every API key allows 600 requests per minute by default. A workspace administrator can set it between 60 and 6,000 on the key. Requests through the workspace operations and the partner endpoints count against the same budget. Webhook deliveries to you do not count.

Limits are counted per API server over fixed one-minute windows, so short bursts can briefly exceed the number; do not rely on that. Older server-configured credentials are not rate limited.

Headers

Every response carries the first three headers; a 429 adds the fourth.

  • RateLimit-LimitRequests this key may make per minute.
  • RateLimit-RemainingRequests left in the current one-minute window.
  • RateLimit-ResetSeconds until the window resets.
  • Retry-AfterOn a 429 only: seconds to wait before retrying.
Example 429 response (HTTP)
HTTP/1.1 429 Too Many RequestsContent-Type: application/jsonRateLimit-Limit: 600RateLimit-Remaining: 0RateLimit-Reset: 12Retry-After: 12X-Request-Id: 7d0c2f4e-3b1a-4f5e-9c8d-2a1b0c9d8e7f{  "error": {    "code": "RATE_LIMITED",    "message": "This API key allows 600 requests per minute. Retry after 12 seconds.",    "requestId": "7d0c2f4e-3b1a-4f5e-9c8d-2a1b0c9d8e7f"  }}

Handling 429

When the budget is spent the API returns 429 RATE_LIMITED. Wait Retry-After seconds (here 12, the same as RateLimit-Reset), then continue. Spread bulk jobs out, or ask an administrator for a higher limit on that key.

Retry 5xx responses with exponential backoff and jitter, but only when a repeat is safe: reads, and the two creates that take an Idempotency-Key when you resend the same saved key. For other writes, read the resource first; see When to retry.

Retry with backoff
import { setTimeout as sleep } from "node:timers/promises";// Retries reads (GET, QUERY) on 429 and 5xx. Writes are returned as// they are, unless you pass { idempotent: true } for Create a lead or// Submit a lead with a saved Idempotency-Key.async function callWithRetry(url, init = {}, options = {}) {  const { attempts = 5, idempotent = false } = options;  const method = (init.method ?? "GET").toUpperCase();  const safe = ["GET", "QUERY"].includes(method) || idempotent;  for (let attempt = 1; ; attempt += 1) {    const response = await fetch(url, init);    const status = response.status;    const retryable = status === 429 || status >= 500;    if (!retryable || !safe || attempt === attempts) return response;    const retryAfter = Number(response.headers.get("Retry-After"));    const jitter = 0.5 + Math.random() / 2;    const backoff = Math.min(30, 2 ** attempt) * jitter;    await sleep((retryAfter || backoff) * 1000);  }}// A create may retry only with the key saved for it:const response = await callWithRetry(  `${BASE}/lms/leads`,  {    method: "POST",    headers: { ...auth, "Idempotency-Key": job.idempotencyKey },    body: JSON.stringify(lead),  },  { idempotent: true },);