Create a script in your Eranol teleprompter library, optionally inside a folder
Creates a script in your teleprompter library. It appears immediately in the dashboard teleprompter and the iOS app.
Cost: 1 credit per script created. Failed requests are not charged. Creating scripts in the dashboard itself is free.
POST https://eranol.com/api/v1/teleprompter/scripts
Headers: x-api-key: <your key>, Content-Type: application/json
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | No | Up to 200 characters. Defaults to Untitled script |
content | string | No | Up to 200,000 characters |
status | string | No | Same values as the library status filter |
folder_id | integer | No | One of your folder IDs. Omit to leave unfiled |
curl -X POST https://eranol.com/api/v1/teleprompter/scripts \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Product launch intro", "content": "Hi everyone, today we are launching..."}'
{
"success": true,
"script": {
"id": 42,
"title": "Product launch intro",
"content": "Hi everyone, today we are launching...",
"status": "draft",
"folder_id": null
}
}
| Status | Meaning |
|---|---|
400 | Invalid body, title too long, script too long, or invalid status or folder |
401 | Missing or invalid API key |
402 | Insufficient credits (1 credit required) |
404 | folder_id does not match one of your folders |
500 | Could not save the script — try again |