Dials
Create Dial
Creates a one-off dial session, either for phone dials or browser dials.
POST
/
dials
Body
application/json
webhookUrl
string | null
Optional. The URL for the webhook for this dial session.
browserCall
boolean | null
Set to true if this is a browser call.
toNumber
string | null
Required if this is a phone dial, in E.164 format.
fromNumberId
string | null
The ID for the phone number to use to start the call. Required if this is a phone dial.
aiVoiceId
string | null
The ID for the voice on the call. If not specified, the default voice for the agent will be used.
callAgentId
string
Required. The ID of the agent.
callAgentInput
object | null
Any macros in the call agent prompt.
Response
200 - application/json
dialToken
string
You can pass this dial token to Elto's web UI, or use this token to authorize any requests for this dial. It's safe to pass this token to a client -- it only allows users to run requests against the dial associated with this session.
sessionId
string
dialId
string