Skip to Content
ColdVenue API

Rate limits

How many requests you can make, and what to do when you hit a limit.

LimitDefaultApplies to
Per key600 requests / minuteEach API key
Per workspaceRoute budgets, e.g. searches 300/min, analytics 300/min, campaign preview 300/min, test emails 30/minCostly routes, shared by every key and member of the workspace
Per IP address1,200 requests / minuteAll API traffic, counted before authentication
Failed authentication50 / 10 minutes per IP addressUnknown, revoked or expired keys. Further requests from that IP answer 429 until the window ends

If your integration needs a higher per-key limit, contact support.

Headers

Every response to a key carries:

HeaderMeaning
x-ratelimit-limitRequests allowed per window for this key
x-ratelimit-remainingRequests left in the current window
x-ratelimit-resetSeconds until the window resets

When you hit a limit

The API answers 429 with code RATE_LIMITED, a retry-after header (seconds) and details.retryAfterSeconds. Wait that long before retrying:

async function coldvenue(url, init = {}, attempts = 3) {
  for (let attempt = 1; ; attempt++) {
    const response = await fetch(url, {
      ...init,
      headers: { ...init.headers, Authorization: `Bearer ${process.env.COLDVENUE_API_KEY}` },
    });
    if (response.status !== 429 || attempt === attempts) return response;
    const seconds = Number(response.headers.get('retry-after') ?? 1);
    await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
  }
}

A key that keeps failing authentication (for example after it was revoked) also blocks other requests from the same IP address for a while. Stop retrying on 401.

On this page