Skip to content

Get AI Script

FreshGET
GET https://api.creatify.ai/api/ai_scripts/{id}/

Retrieve a specific AI-generated script by its ID.

Path Parameters

NameTypeRequiredDescription
idstringYesThe AI script ID

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour 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

FieldTypeDescription
idstringUnique script identifier
statusstringTask status: pending, processing, done, failed
scriptstringThe generated script text
urlstringSource URL (if provided)
titlestringProduct title (if provided)
descriptionstringProduct description (if provided)
created_atstringISO 8601 timestamp
updated_atstringISO 8601 timestamp

Status Codes

CodeDescription
200Success
401Unauthorized -- invalid API credentials
404Script not found
500Internal server error