Reference
Errors and rate limits
Errors are JSON with a code and a plain-language detail. Limits keep the free plan free for everyone.
Error format
HTTP/1.1 403 Forbidden
Content-Type: application/json
{"code": "FORBIDDEN", "detail": "A token can't manage tokens."}| Status | Code | When |
|---|---|---|
| 400 | BAD_REQUEST | The body or a parameter is wrong. detail says which. |
| 401 | UNAUTHORIZED | No session or token, or the token is unknown or revoked. |
| 403 | FORBIDDEN | Signed in, but not allowed: another workspace, a token where a session is needed, a member on an admin route. |
| 404 | NOT_FOUND | No such harness, experiment, run, token or endpoint (or it's in another workspace). |
| 409 | GATE | The adopted variant fails its gate, or hasn't passed a tier required to adopt (the held-out test set, and every tier below it). detail gives the reasons per tier; close with a written override_reason to adopt anyway; it's logged and shown on the version. |
| 409 | CONFLICT | The thing exists already, or an Idempotency-Key was reused with a different body. |
| 413 | BAD_REQUEST | The body is too large. Send fewer rows per request. |
| 429 | QUOTA | A quota is full (harnesses, runs per day, storage, tools, live API tokens). The body adds quota, limit and used. Retry-After comes only when waiting helps (the daily run quota); otherwise free something up or move plans. |
| 429 | RATE_LIMITED | Too many requests this minute. The body adds limit; wait for Retry-After. |
| 500 | INTERNAL | Something broke on our side. Retrying later is safe for reads and idempotent writes. |
In the SDKs
The Python and TypeScript clients turn each error into a class of its own, and retry rate limits, server errors and network errors first, with the same idempotency key.
| Status and code | Python | TypeScript |
|---|---|---|
400 BAD_REQUEST | BadRequestError | BadRequestError |
| 401, 403 | AuthError | AuthError |
404 NOT_FOUND | NotFoundError | NotFoundError |
409 GATE | GateRefused | GateRefused |
409 CONFLICT | ConflictError | ConflictError |
429 QUOTA | QuotaError (.retry_after) | QuotaError (retryAfter) |
429 RATE_LIMITED | RateLimitError | RateLimitError |
| 5xx | ServerError | ServerError |
| unreachable | SynaptraConnectionError | ConnectionError |
| any of them | HarnessClientError | SynaptraError |
Sign-in limits
| Limit | Value |
|---|---|
| Codes asked for one address | 5 per 15 minutes, 10 per day |
| Codes asked from one network | 20 per 15 minutes, 60 per day |
| Wrong codes for one address | 10 per 30 minutes, 20 per day |
| Tries per code | 5 |
A right code gives back the tries it used. Limits never say whether an account exists.
API quotas
The free plan has quotas per workspace, enforced on every write. Over a quota you get 429 with code: QUOTA and what the limit is, what's used, and what to do; nothing in that request was recorded. GET /api/usage shows where you stand.
| Quota (per workspace) | Free plan |
|---|---|
| Harnesses | 10 |
| Run rows reported per UTC day | 10,000 |
| Rows stored (runs, experiments, events, versions, …) | 250,000 |
| Storage | 100 MB |
| Active tools per harness | 100 |
| API requests | 600 per minute |
| Live API tokens | 20 per person |
Back off and retry after the Retry-After header when it's present. A daily quota frees up at midnight UTC.
Something unclear or missing? Email support@synaptra.my.