Spavik
API reference

Error codes

Machine-readable API errors and retry guidance from the OpenAPI contract.

Every API error has status, a machine-readable message code and a human-readable messageDetail. Branch on the code, not on the prose. Keep the X-Spavik-Request-Id response header for diagnostics.

Retry policies

Honor Retry-After when provided, but check the policy before replaying a mutation. A new idempotency key starts a new logical operation.

CodeGuidance
TOO_MANY_REQUESTSWait for Retry-After. Keep the same Idempotency-Key and payload if one was supplied.
REQUEST_IN_PROGRESSRetry with the same Idempotency-Key and payload after Retry-After.
ENGINE_BUSYFor predictions and forecasts, wait for Retry-After and keep the original Idempotency-Key if supplied. Model creation or refresh may have completed: retry only with the original key and payload; REQUEST_INTERRUPTED requires inspection. Without an original key, inspect model mutations before retrying.
ENGINE_UNAVAILABLEThe engine outcome may be unknown. Retry only with the original Idempotency-Key and payload; otherwise inspect the operation before retrying.
USAGE_ACCOUNTING_UNAVAILABLERetry only with the original Idempotency-Key and payload; otherwise contact support before retrying.
RATE_LIMIT_UNAVAILABLERetry after Retry-After; keep the same Idempotency-Key if supplied.
REQUEST_LOG_UNAVAILABLERetry this GET after Retry-After.
REQUEST_INTERRUPTEDThe outcome is uncertain. Do not switch to a new key or retry automatically. Inspect the request log and contact support with x-spavik-request-id.
IDEMPOTENCY_RESPONSE_UNAVAILABLEThe response could not be saved. Do not switch to a new key or retry automatically. Contact support with x-spavik-request-id.
IDEMPOTENCY_KEY_REUSEDUse the original payload for a retry. Use a new key only for a deliberately new operation.
CREDITS_EXHAUSTEDBuy credits or change plan before retrying.

Integration error codes

These codes cover the documented API-key integrations, including shared authentication, validation and service failures. Not every code applies to every endpoint. Console sign-in, account administration and payment-management errors are excluded.

  • ACCOUNT_NOT_FOUND
  • ADMIN_KEY_CANNOT_PREDICT
  • API_KEY_EXPIRED
  • API_KEY_INVALID
  • AUTH_REQUIRED
  • BAD_REQUEST
  • COLUMN_MISMATCH
  • CONTEXT_UNAVAILABLE
  • CREDITS_EXHAUSTED
  • CSV_UNREADABLE
  • DATASET_TOO_LARGE
  • DATA_KEK_INVALID
  • DATA_KEK_MISSING
  • DATA_KEY_MALFORMED
  • DATA_KEY_MISMATCH
  • DATA_KEY_NOT_SENT
  • DATA_KEY_UNREADABLE
  • DATA_KEY_VERSION_UNKNOWN
  • DATA_REQUIRED
  • ENGINE_BUSY
  • ENGINE_CATALOGUE_MISMATCH
  • ENGINE_ERROR
  • ENGINE_FAMILY_MISMATCH
  • ENGINE_FAMILY_ONLY
  • ENGINE_FAMILY_REQUIRED
  • ENGINE_MISMATCH
  • ENGINE_NO_MODEL
  • ENGINE_PLAN_REQUIRED
  • ENGINE_RETIRED
  • ENGINE_UNAVAILABLE
  • FILE_TOO_LARGE
  • FORECAST_FAILED
  • HORIZON_REQUIRED
  • IDEMPOTENCY_KEY_REUSED
  • IDEMPOTENCY_KEY_TOO_LONG
  • IDEMPOTENCY_RESPONSE_UNAVAILABLE
  • INPUT_REQUIRED
  • INTERNAL_ERROR
  • INVALID_DATE
  • INVALID_ENGINE_VERSION
  • INVALID_INPUT
  • INVALID_RANGE
  • MALFORMED_PATH
  • MODEL_ARCHIVED
  • MODEL_DELETED
  • MODEL_KEY_MISSING
  • MODEL_NOT_FOUND
  • MODEL_NOT_REFRESHABLE
  • MODEL_NOT_TRAINED
  • NO_PENDING_OUTCOMES
  • NO_ROWS
  • OUTCOME_PREDICTION_INVALID
  • PERFORMANCE_UNAVAILABLE
  • QUOTA_MODELS_EXCEEDED
  • RANGE_TOO_WIDE
  • RATE_LIMIT_UNAVAILABLE
  • REFRESH_IN_PROGRESS
  • REQUEST_INTERRUPTED
  • REQUEST_IN_PROGRESS
  • REQUEST_LOG_UNAVAILABLE
  • ROUTE_NOT_FOUND
  • SCHEMA_MISMATCH
  • TARGET_COLUMN_MISSING
  • TARGET_REQUIRED
  • TARGET_TASK_FROZEN
  • TIMESTAMP_COLUMN_MISSING
  • TIMESTAMP_COLUMN_NOT_FOUND
  • TOO_MANY_REQUESTS
  • TOO_MANY_ROWS
  • UNKNOWN_ENGINE_VERSION
  • UNKNOWN_TASK
  • UPLOAD_INVALID
  • USAGE_ACCOUNTING_UNAVAILABLE
  • USAGE_UNAVAILABLE
  • VALIDATION_ERROR
  • VALIDATION_FAILED
  • WORKSPACE_NOT_FOUND

How is this guide?

Last updated on

On this page