Preview Custom Template Job
FreshPOSTPOST https://api.creatify.ai/api/custom_template_jobs/{id}/preview/Generate a preview of a custom template job.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The template job 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 POST 'https://api.creatify.ai/api/custom_template_jobs/job-001/preview/' \
-H 'X-API-ID: your-api-id' \
-H 'X-API-KEY: your-api-key'Response
json
{
"id": "job-001",
"status": "processing",
"preview": null
}When complete:
json
{
"id": "job-001",
"status": "done",
"preview": "https://cdn.creatify.ai/template-jobs/job-001-preview.mp4"
}Status Codes
| Code | Description |
|---|---|
200 | Preview generation started |
401 | Unauthorized -- invalid API credentials |
402 | Insufficient credits |
404 | Job not found |
500 | Internal server error |