projqoDevelopers

Guide

Rate limits

How many calls a minute each plan allows, the headers that say where you are, and what to do at the limit.

projqo counts calls per token and per organisation, each per minute. Both limits apply: a token stays under its own limit, and all the tokens and apps of an organisation together stay under the organisation's.

A call refused because its own token or app is over its limit doesn't count toward the organisation's minute, so one busy script can't use up the minute for everyone else.

The limits by plan

PlanPer token, a minutePer organisation, a minuteWebhook deliveries, a day
Free603001,000
Standard3001,500100,000
Premium6003,000250,000
Enterprise1,2006,000By agreement

The API and webhooks are on every plan, Free included. The numbers are each plan's at the time of this release; your organisation's own limit is in the RateLimit-Limit header of every answer.

  • A bulk call counts as one call for every 10 items: a bulk update of 100 tasks counts as 10 calls.
  • The OAuth token endpoint has limits of its own.

The headers

Every answer says where you stand:

HeaderMeans
RateLimit-LimitThe calls allowed in the current minute.
RateLimit-RemainingThe calls left in it.
RateLimit-ResetSeconds until the window moves on.

At the limit

A call over the limit answers 429 with the code rate_limited and a Retry-After header, in seconds. Wait that long, then go on.

There is no lock-out: calls work again as soon as the window moves on, and a burst never blocks you for longer than that.

JavaScript
async function call(url, init) {
  for (;;) {
    const res = await fetch(url, init);
    if (res.status !== 429) return res;
    const wait = Number(res.headers.get("Retry-After") ?? "1");
    await new Promise((r) => setTimeout(r, wait * 1000));
  }
}

Staying well under

  • Ask for what changed: updated_since on every list, and the deleted-items feeds, instead of reading everything again.
  • Use webhooks instead of asking every few seconds whether something changed.
  • Use the bulk calls for many tasks at once.
  • Choose only the fields you need with fields=, and big pages with limit=200.
  • Keep answers you read often, such as statuses, fields and people, and read them again now and then.
  • Watch RateLimit-Remaining and slow down before it reaches 0.