DataPI.

What would you like to understand?

Preparing search…
    All results and search filters →

    Reference

    Error envelope and status codes

    Every error has one shape, a stable code and a request ID for support without leaking provider details.

    Stable error shape

    Stable error shape
    {
      "error": {
        "code": "unauthorized",
        "message": "Authentication required or expired",
        "request_id": "req_682c1cdf73ad4549ad90eedb9c40a539"
      }
    }

    Details may add a safe explanation, but code, message and request_id are always present. Log request_id, never the Authorization header.

    Status codes used by the API

    StatusTypical codeMeaning
    400invalid_requestInvalid fields, extra input properties, unsupported mode or bad JSON
    401unauthorizedMissing, invalid, revoked or expired credential
    403forbidden / origin_not_allowedInsufficient permission or a browser origin is missing/not allowed
    404not_foundUnknown operation/resource, including another workspace’s resource
    409result_not_ready / conflictThe request state does not permit the action yet
    410result_expiredThe stored result passed its retention window
    429rate_limit_exceededTechnical limit reached; honor Retry-After when present
    503source_unavailable / not_configuredThe operation or a required service is not executable now

    Unavailable is a valid contract state

    Related pages

    Runtime contract snapshot: DataPI API v1.0.0 · 75 HTTP operations documented of 265 runtime operations · 40 catalog operations · 11 available at capture. Captured: . Source: https://api.datapi.ir/v1/contracts.