POST
/
v1
/
scripts
curl --request POST \
  --url https://api.eqho.ai/v1/scripts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "lines": [
    {
      "message": "Hi [prospectName]",
      "speaker": "AGENT"
    },
    {
      "message": "*Wait for user response*",
      "speaker": "USER"
    },
    {
      "message": "My name is [agentName] from [companyName]. I'\''m just giving you a quick call back with the free debt relief quote you requested! Let'\''s get started, it will only take a few minutes.",
      "speaker": "AGENT"
    }
  ],
  "name": "Debt Relief Script"
}'
{
  "lines": [
    {
      "message": "Hi [prospectName]",
      "speaker": "AGENT"
    },
    {
      "message": "*Wait for user response*",
      "speaker": "USER"
    },
    {
      "message": "My name is [agentName] from [companyName]. I'm just giving you a quick call back with the free debt relief quote you requested! Let's get started, it will only take a few minutes.",
      "speaker": "AGENT"
    }
  ],
  "name": "Debt Relief Script"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

200
application/json
Successful Response

Container for a single script record.