Skip to content

Errors

Sleepwalker API errors use a detail field.

Simple errors return a string:

{
"detail": "Missing or invalid Authorization header"
}

Action denials return a structured object:

{
"detail": {
"reason": "invalid_request",
"action_decision_id": "act_...",
"required_scope": "visibility:runs:create",
"estimated_credits": "0.00",
"probe_count": 0,
"errors": ["unsupported_platform"]
}
}
StatusMeaning
400Invalid request body, invalid cursor, unsupported value, or missing required field.
401Missing or invalid authentication.
402Insufficient credits for a billable action.
403Key does not have the required scope, the account is suspended, or the action is unavailable.
404Resource was not found or does not belong to the authenticated user.
503The requested action is temporarily unavailable.

Structured action errors may include these reason or errors values:

ValueMeaning
missing_scopeThe key does not include the required scope.
user_suspendedThe account cannot run actions.
invalid_requestRequest validation failed. See errors.
insufficient_creditsNo billable work could be queued with the current balance.
unsupported_platformPlatform is not supported.
too_many_promptsPrompt count exceeds the visibility run limit.
too_many_platformsPlatform count exceeds the visibility run limit.
too_many_probesProbe count exceeds the visibility run limit.
too_many_competitorsCompetitor count exceeds the visibility run limit.
prompt_too_longOne prompt exceeds the prompt length limit.
invalid_cursorstarting_after does not match a visible run.