Skip to main content
GET
/
v2
/
ai_scripts
/
results
/
{task_id}
Get AI script generation status
curl --request GET \
  --url https://api.jogg.ai/v2/ai_scripts/results/{task_id} \
  --header 'x-api-key: <api-key>'
{
  "code": 0,
  "msg": "Success",
  "data": {
    "task_id": "task_123456789",
    "status": "completed",
    "data": {
      "generated_scripts": [
        {
          "script_style": "Storytime",
          "script_paragraphs": [
            "Ever tried drinking water while running?",
            "The Owala FreeSip makes it effortless..."
          ]
        }
      ]
    },
    "err_msg": "Failed to generate script"
  }
}
Retrieve the generated AI scripts by task ID.

Example Usage

curl --request GET \
  --url 'https://api.jogg.ai/v2/ai_scripts/results/task_abc123' \
  --header 'x-api-key: YOUR_API_KEY'

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your key from the JoggAI dashboard.

Path Parameters

task_id
string
required

Task ID from script generation request

Example:

"task_123456789"

Response

200 - application/json

Success

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
Example:

0

msg
string
required

Response message

Example:

"Success"

data
object