Mager API

Retry task webhook

POST/api/v1/generation-tasks/{taskId}/webhooks/retry

Queue a new webhook delivery for a terminal task. The task must belong to the current API key account, must have a callback_url, and must already be finished or failed.

Authorization

MagerApiKey
x-mager-api-key<token>

Mager API key

In: header

Path Parameters

taskId*string

Header Parameters

x-mager-api-key*string

Mager API key

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/generation-tasks/string/webhooks/retry" \  -H "x-mager-api-key: YOUR_API_KEY"
{  "status": 202,  "message": "Success",  "data": {    "delivery_id": "delivery_01hxyz",    "status": "queued",    "max_attempts": 3  }}