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
Limits by plan
These values are subject to change.
| Plan | Access | Requests per token | Writes per workspace and day |
|---|---|---|---|
| Free | read-only | 30 per minute | 0 |
| Personal | full | 60 per minute | 500 |
| Team, Organization | full | 120 burst, 2 per second | 5,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:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Size of the bucket. |
X-RateLimit-Remaining | Requests left in the bucket. |
X-RateLimit-Reset | Seconds until the bucket is full again. |
Retry-After | Only on 429: seconds to wait before retrying. |
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.
# 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")
}