POST
/
dials

Body

application/json
callAgentId
string
required

Required. The ID of the agent.

aiVoiceId
string | null

The ID for the voice on the call. If not specified, the default voice for the agent will be used.

browserCall
boolean | null

Set to true if this is a browser call.

callAgentInput
object | null

Any macros in the call agent prompt.

fromNumberId
string | null

The ID for the phone number to use to start the call. Required if this is a phone dial.

timeoutMinutes
integer

The number of minutes before the call will be timed out. If not specified, there will be no limit on the calls, it's recommended to provide something here.

toNumber
string | null

Required if this is a phone dial, in E.164 format.

versionedModelId
string

The prompt/model version to use for this call, if not specified, the default on the agent is used.

webhookUrl
string | null

Optional. The URL for the webhook for this dial session.

Response

200 - application/json
dialId
string
required
dialToken
string
required

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
required