Create a call script
Creates a call script agents read while dialing. The body supports {{merge}} fields resolved by the agent’s phone at call time. Attach the script to a campaign via the campaign’s call_script_id.
Authorizations
HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).
Body
Body of the create-script call. Unknown fields are silently dropped.
Display name. Leading and trailing whitespace is trimmed before validation, so a blank or whitespace-only name is rejected with 400 (name should not be empty in subErrors).
1 - 255\S"Summer promo pitch"
Script content; supports {{merge}} fields.
1"Hi {{first_name}}…"
Response
The created script.
A call script agents read while dialing. Ids are BIGINTs serialized as strings.
Script ID.
"17"
Display name.
255"Summer promo pitch"
Script content; supports {{merge}} fields resolved by the agent's phone at call time.
"Hi {{first_name}}, this is {{agent_name}} from CloudTalk…"
Whether the script is archived (soft-deleted).
false
When the script was created (ISO 8601, UTC).
"2026-07-01T09:00:00.000Z"
When the script last changed (ISO 8601, UTC).
"2026-08-04T11:40:00.000Z"