Expected error payloads:
{ "error": "..." }or
{
"status": "active_job_exists",
"job_id": "job_xxx",
"job_status": "processing"
}- Cause: missing/invalid
Authorizationbearer key - Action: verify
BOOSTA_API_KEYand header format
- Cause: malformed payload, missing required field
- Action: include
video_urland validvideo_type
- Cause: invalid
video_type - Action: use one of:
conversation,solo,gaming,vlog,faceless,movies
- Cause: account credits exhausted
- Action: stop retries and return a clear billing/credits message
- Cause: too many requests
- Action: respect
retry_afterseconds, then retry with backoff
- Cause: one-job-at-a-time limit hit
- Action: do not create a second job; continue polling returned
job_id
- Retry transient failures (
429,5xx) with bounded attempts. - Do not retry credential or validation failures (
401,400,403) without changes. - Log status code and body for debugging (redact secrets).