Get AI Script
FreshGETGET https://api.creatify.ai/api/ai_scripts/{id}/Retrieve a specific AI-generated script by its ID.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The AI script ID |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-API-ID | string | Yes | Your Creatify API ID |
X-API-KEY | string | Yes | Your Creatify API key |
Example Request
bash
curl -X GET 'https://api.creatify.ai/api/ai_scripts/script-001/' \
-H 'X-API-ID: your-api-id' \
-H 'X-API-KEY: your-api-key'Response
json
{
"id": "script-001",
"status": "done",
"script": "Tired of spending hours on video ads? Meet Creatify, the AI-powered platform that turns any URL into a professional video ad in minutes.",
"url": "https://example.com/product",
"title": "Product Name",
"description": "Product description",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:31:00Z"
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique script identifier |
status | string | Task status: pending, processing, done, failed |
script | string | The generated script text |
url | string | Source URL (if provided) |
title | string | Product title (if provided) |
description | string | Product description (if provided) |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
Status Codes
| Code | Description |
|---|---|
200 | Success |
401 | Unauthorized -- invalid API credentials |
404 | Script not found |
500 | Internal server error |