Oneday Docs

Errors

The API returns a JSON body with a machine-readable code and a short message.

{
  "error": {
    "type": "invalid_request",
    "code": "schedule_invalid",
    "message": "schedule is not a valid cron expression"
  }
}

Status codes

StatusTypeMeaning
400invalid_requestThe request body or query is not valid.
401unauthorizedMissing or invalid API key.
403forbiddenThe key lacks the required scope.
404not_foundThe job or run does not exist.
409conflictA job with that name already exists.
429rate_limitedToo many requests. Retry after the Retry-After header.
500internal_errorUnexpected server error.

Retrying

Retry 429 and 5xx responses with exponential backoff. Do not retry 4xx responses other than 429.