yoftdocs

API documentation

Reference

Find error codes, input limits, rate limits, and usage details.

Error codes

All errors share a common envelope. The request_id matches the one in usage logs — include it when contacting support.

Error response
{
  "error": {
    "code": "invalid_request",
    "message": "horizon: Input should be less than or equal to 512",
    "request_id": "req_a1b2c3d4e5f67890a1b2c3d4e5f67890"
  }
}
HTTPCodeDescription
400invalid_requestSchema, value, or limit violation in the request body
401unauthorizedMissing, invalid, or revoked API key
402payment_requiredInsufficient credits
403forbiddenInsufficient permissions
404not_foundUnknown route
405method_not_allowedHTTP method not allowed for this route
413payload_too_largeRequest body exceeds the size limit
429rate_limitedRate limit exceeded — retry with backoff
500internal_errorUnexpected server error
503model_unavailableModel is not available — retry later
504timeoutInference timed out

If an error does not resolve, see "Forecasts fail" in Help. opens in a new tab

Input limits

Requests exceeding these limits are rejected with 400 invalid_request.

LimitValue
Points per series16–2048
Series per requestup to 64
Forecast horizon1–512
Total input points per requestup to 131,072

Rate limits

Applied per API key with a token bucket: burst of 10 requests, refilling at 1 request/sec (free tier). Exceeding it returns 429 rate_limited.

Usage

The usage object in every 200 response shows how many data points the request consumed. The same numbers appear in the request log on the Usage page.

FieldDescription
input_pointsTotal input points across all submitted series
output_pointsTotal points returned. Defined per endpoint: forecast = horizon × series count / anomaly = sum of 2 × (length − test_start) / impute = sum of imputed (null) points / embed = 0
series_countNumber of series in the request