Replay a task run's event
Run the task again on the exact event an earlier run received (its trigger_event), not on whatever is newest now. Use it when an event-triggered run failed, was skipped, or did the wrong thing. Starts a new run with replay_of set to this run; it skips the task's condition, as Run now does. A real replay does everything the task normally does, sends included, so check what the original run already did first. Pass test_run: true to replay it as a test run: writes refused, deliveries captured. 422 no_trigger_event if no event started this run, 402 insufficient_credits if the account is out of AI credits, 409 if the task already has a run in flight or the account is at its run limit.
Request
- Base URL: https://api.crevio.co/v1
- URL: https://api.crevio.co/v1/task_runs/{id}/replay
- Auth: API key in header Authorization
Path parameters
Task run id (trun_...) whose event to replay
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Response
Accepted — the replay runs in the background on a new run; poll GET /task_runs/{id}.
Changes
No recorded changes to this operation across all 2 revisions of this API.