SynaptraDocs

    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
    HTTP/1.1 403 Forbidden
    Content-Type: application/json
    
    {"code": "FORBIDDEN", "detail": "A token can't manage tokens."}
    StatusCodeWhen
    400BAD_REQUESTThe body or a parameter is wrong. detail says which.
    401UNAUTHORIZEDNo session or token, or the token is unknown or revoked.
    403FORBIDDENSigned in, but not allowed: another workspace, a token where a session is needed, a member on an admin route.
    404NOT_FOUNDNo such harness, experiment, run, token or endpoint (or it's in another workspace).
    409GATEThe 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.
    409CONFLICTThe thing exists already, or an Idempotency-Key was reused with a different body.
    413BAD_REQUESTThe body is too large. Send fewer rows per request.
    429QUOTAA 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.
    429RATE_LIMITEDToo many requests this minute. The body adds limit; wait for Retry-After.
    500INTERNALSomething 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 codePythonTypeScript
    400 BAD_REQUESTBadRequestErrorBadRequestError
    401, 403AuthErrorAuthError
    404 NOT_FOUNDNotFoundErrorNotFoundError
    409 GATEGateRefusedGateRefused
    409 CONFLICTConflictErrorConflictError
    429 QUOTAQuotaError (.retry_after)QuotaError (retryAfter)
    429 RATE_LIMITEDRateLimitErrorRateLimitError
    5xxServerErrorServerError
    unreachableSynaptraConnectionErrorConnectionError
    any of themHarnessClientErrorSynaptraError
    #

    Sign-in limits

    LimitValue
    Codes asked for one address5 per 15 minutes, 10 per day
    Codes asked from one network20 per 15 minutes, 60 per day
    Wrong codes for one address10 per 30 minutes, 20 per day
    Tries per code5

    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
    Harnesses10
    Run rows reported per UTC day10,000
    Rows stored (runs, experiments, events, versions, …)250,000
    Storage100 MB
    Active tools per harness100
    API requests600 per minute
    Live API tokens20 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.