ProjectFlow Pre-launch

Rate limits

Limits apply per token and per workspace and depend on the plan. Every response tells you how much room you have left.

On this page
  1. Limits by plan
  2. Headers
  3. Handling limits

Limits by plan

These values are subject to change.

PlanAccessRequests per tokenWrites per workspace and day
Freeread-only30 per minute0
Personalfull60 per minute500
Team, Organizationfull120 burst, 2 per second5,000
  • Writes also have a short burst bucket (30 requests, refilled at 0.5 per second).
  • Search has a limit of its own.
  • Webhooks are available from the Team plan.

Headers

Every response carries these headers:

HeaderMeaning
X-RateLimit-LimitSize of the bucket.
X-RateLimit-RemainingRequests left in the bucket.
X-RateLimit-ResetSeconds until the bucket is full again.
Retry-AfterOnly on 429: seconds to wait before retrying.
Response on 429HTTP
HTTP/1.1 429 Too Many Requests
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 42
Retry-After: 42

Handling limits

On 429, wait at least Retry-After seconds, then retry. Don't retry in a tight loop. daily_write_limit only clears the next day, so waiting a few seconds won't help.

Retrying with Retry-After
# curl can honour Retry-After by itself
curl --retry 3 --retry-all-errors \
  "https://api.getprojectflow.com/v1/projects" \
  -H "Authorization: Bearer pfat_YOUR_TOKEN"
async function call(url, options, attempts = 3) {
  for (let i = 1; ; i++) {
    const res = await fetch(url, options);
    if (res.status !== 429 || i === attempts) return res;
    const wait = Number(res.headers.get('Retry-After') ?? 1);
    await new Promise((done) => setTimeout(done, wait * 1000));
  }
}
import time
import requests

def call(url, headers, attempts=3):
    for i in range(1, attempts + 1):
        res = requests.get(url, headers=headers)
        if res.status_code != 429 or i == attempts:
            return res
        time.sleep(int(res.headers.get("Retry-After", 1)))
func call(_ request: URLRequest, attempts: Int = 3) async throws -> (Data, HTTPURLResponse) {
    for attempt in 1...attempts {
        let (data, response) = try await URLSession.shared.data(for: request)
        let http = response as! HTTPURLResponse
        if http.statusCode != 429 || attempt == attempts { return (data, http) }
        let wait = UInt64(http.value(forHTTPHeaderField: "Retry-After") ?? "1") ?? 1
        try await Task.sleep(nanoseconds: wait * 1_000_000_000)
    }
    fatalError("unreachable")
}

↑↓ to select, Enter to open, Esc to close