---
title: "Get AI script generation status"
method: GET
path: "/v2/ai_scripts/results/{task_id}"
tags: ["Asset"]
---

# Get AI script generation status

`GET /v2/ai_scripts/results/{task_id}`

Check the status and retrieve results of AI script generation task.
Scripts are generated in multiple styles for variety.

## Path parameters

- `task_id` string, required

## Response `200`

Success

- object
  - `code` integer, required — Business status code: * 0 - Success * 10104 - Record not found * 10105 - Invalid API key * 18020 - Insufficient credit * 18025 - No permission to call APIs * 40000 - Parameter error * 50000 - System error
  - `msg` string, required — Response message
  - `data` object
    - `task_id` string — Task ID from script generation request
    - `status` 'pending' | 'processing' | 'completed' | 'failed' — Task status
    - `data` object — Script generation results (only present when status is 'completed')
      - `generated_scripts` object[] — Generated scripts in different styles
        - `script_style` string — Style of the script
        - `script_paragraphs` string[] — The generated script content as an array of paragraphs
    - `err_msg` string — Error message (only present when status is 'failed')

---

[API](https://skmtc.net/jogg/apis/joggai-openapi-v2.md) · [All operations](https://skmtc.net/jogg/apis/joggai-openapi-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jogg/joggai-openapi-v2/versions/ec8807ce9c12/schema)
