> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Receive async task completion callbacks.

Async media tasks can include a callback URL when enabled for the API key or request.

Callbacks are retried by the platform when delivery fails.

The callback body is the same shape as the task detail. The `result` differs by
task type: image results carry `result.data[0].url`, while video/audio results
carry `result.video_url` / `result.audio_url` (and `result.urls[]`).

```json theme={null}
{
  "task_id": "task_123",
  "status": "completed",
  "model": "seedance-2.0",
  "type": "video",
  "result": {
    "status": "completed",
    "video_url": "https://.../video.mp4",
    "urls": ["https://.../video.mp4"]
  }
}
```

## Recommendation

Always verify task status through `/v1/tasks/{task_id}` before treating a webhook as final in high-value workflows.
