Documentation menu

API errors#

Every API failure uses one envelope. Branch on error.code, not message text.

json
{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_missing",
    "message": "Missing required parameter.",
    "param": "sql",
    "doc_url": "https://api.supernova.ai/docs#parameter_missing",
    "request_id": "req_..."
  }
}

The Request-Id response header repeats request_id. Include it when contacting support. param appears only when one input can be named.

Status classes#

StatusMeaningRetry
400Invalid input or refused capabilityChange the request
401Missing, malformed, expired, or revoked credentialRefresh or replace the credential
403Authenticated but missing scope or roleRequest appropriate access
404Resource absent or hidden from this organizationDo not infer cross-tenant existence
409Current state conflicts with the operationRead current state, then decide
429Caller, organization, or concurrency limitHonor Retry-After
500Unexpected server failureRetry with backoff when the request is idempotent
503Required service unavailableRetry with backoff

Common codes#

CodeMeaning
invalid_jsonBody is not valid JSON
parameter_missingRequired input is absent
invalid_cursorCursor did not come from the matching collection
invalid_formatRequested representation is unsupported
authentication_requiredBearer credential is absent
invalid_tokenCredential failed validation
insufficient_scopeCredential lacks the endpoint scope
rate_limitedRequest rate exceeded
idempotency_key_reusedKey was bound to different input
query_not_foundQuery is unavailable to this organization
job_not_foundJob is unavailable to this organization
catalog_not_foundSchema or table is absent or hidden
source_not_foundSource is absent or hidden
send_not_foundSend or nested run is absent or hidden

Resource pages list their additional codes at the operation that returns them.