Query the current status and progress of a screenplay extraction task
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | The screenplay task ID returned from the Submit Task endpoint |
| Parameter | Type | Description |
|---|---|---|
| code | integer | Response code indicating the result status |
| msg | string | Response message |
| data.task_id | string | The screenplay task ID |
| data.status | string | Current task status (see status values below) |
| data.progress | object | Progress information (only present when status is "running") |
| data.progress.total_episodes | integer | Total number of episodes to process |
| data.progress.completed_episodes | integer | Number of episodes completed so far |
| data.error_code | string | Error code (only present when status is "failed") |
| data.error_message | string | Detailed error message (only present when status is "failed") |
| success | boolean | Indicates whether the API call was successful |
| failed | boolean | Indicates whether the API call failed |
| Status | Description |
|---|---|
pending | Task has been submitted and is waiting to be processed |
running | Task is currently being processed, check progress for details |
completed | Task has finished successfully, use Download Task Result to get the output files |
failed | Task has failed, check error_code and error_message for details |
cancelled | Task has been cancelled via Cancel Task |
"completed", use the Download Task Result endpoint to download the output filesprogress field is only available when the task is in "running" statusAPI key for authentication
The screenplay task ID
"ros-sd-20260313-a3f8c2b1"
Task status retrieved successfully