Tasks

Create a new task from a failed or expired task

The source terminal task is never modified. Current model schema, pricing, permissions, balance, and availability are evaluated again. An optional Idempotency-Key is scoped to the source task and retry action. The source task must have been created by the same API key; unknown, cross-account, and same-account cross-key task IDs all return 404.

post/api/v1/jobs/retry

Request

  • Base URL: https://api.spicyapi.ai
  • URL: https://api.spicyapi.ai/api/v1/jobs/retry
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Stable key for one logical task submission; retained for 24 hours per account and bound to both the submitting API key and normalized request fingerprint. A sibling key receives 409 without the original task ID.

Request body

taskIdstring required

Response

A newly created retry task is returned in queued state. An idempotent replay returns that retry task in its current state.

code200 required
msg'success' required
request_idstring required

Correlation identifier. Include it in support requests.

Changes

No recorded changes to this operation across all 1 revision of this API.