# Retrieve Task

Poll the state of an async task.

`GET /api/v1/tasks/{task_id}`

## Overview

Poll the video task created by POST /api/v1/videos. This deployment does not currently send task callbacks.

## Parameters

- `task_id` (string) — required: Task identifier returned at creation, in the path.

## Example

```bash
curl https://capi.minapp.xin/api/v1/tasks/tsk_8f21c4ba \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

## Response

```json
{
  "id": "video_42_demo-video-001",
  "object": "video.task",
  "status": "succeeded",
  "model": "YOUR_VIDEO_MODEL",
  "result": {
    "url": "https://capi.example/api/v1/files/file_.../content?token=...",
    "file_id": "file_...",
    "archived": true
  },
  "error": null,
  "created_at": 1770000000,
  "updated_at": 1770000120
}
```
