Limits and errors
Limits
These are the defaults. Chartnaut can change them for you; ask [email protected].
Limit | Default |
|---|---|
Requests | 1,200 a minute, up to 50 a second |
Page size | 200 |
Batch create | 500 items a call |
Bulk actions | 1,000 ids a call; by labels needs |
| 2,000 items an hour, then they wait for Chartnaut's approval |
Active or locked sessions | 10,000 across your users, 10 per user |
Demo accounts you created, active or locked | 2,000 across your users, 5 per user |
Frame tokens | 1 per user; asking again returns the same one |
Frame opens | 100 per token a day |
Links | 20,000 in any 24 hours, 5 open per user |
Request body | 2 MiB |
Webhook endpoints | 5 |
Portal members | 20 |
Every response to a call whose key checked out carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until the minute resets). A 401, the 403 switched_off you get when the whole API is off for you, and the 429 for too many bad keys from one address come before that check and carry none.
A 429 rate_limited carries Retry-After: wait that many seconds. details.limit says which limit: rate_minute or rate_burst. After 30 bad keys from one IP address in a minute, calls from that address get 429 rate_limited with no details and Retry-After: 60 until the count resets, even with a good key.
Errors
{ "error": { "code": "scope_not_granted", "message": "The user has not granted alerts:read.", "details": { "scope": "alerts:read" } } }Code | Status | What to do |
|---|---|---|
| 401 | The key is missing, wrong or revoked |
| 403 | The user didn't grant |
| 403 | That part of the API is paused for you; contact [email protected] |
| 404 | The user isn't linked to you |
| 404 | No such object of yours, or an id of the wrong shape |
| 409 |
|
| 409 | A bulk action by labels matched |
| 400 | Fix the request: a bad field, id or rule, an unknown field, or no Idempotency-Key. |
| 422 | That Idempotency-Key was used for a different path or body |
| 422 | The user's plan doesn't allow it; |
| 422 | One of your limits above ( |
| 429 | Wait |
| 500 | Retry; if it keeps happening, contact [email protected] |
Where a field is to blame, details.field names it on most endpoints. An unknown field or a body that doesn't parse names the field in message only, and demo account fields other than rules and external_ref are named in message only.
Retry 429, 500 and network errors with the same Idempotency-Key, so a retry never does the work twice. A 429 or 5xx answer isn't stored against the key, so the retry runs again.
