POST
/
dial
/
outbound

Headers

authorization
string
required

Your API key for authentication. Use Bearer format.

Body

application/json
number_id
string
required

ID of the phone number that should trigger the call.

Required string length: 24
phone_number
string
required

Phone number to call.

assistant_id
string
deprecated

DEPRECATED: Use the use_case_id instead.

voice_id
string
deprecated

DEPRECATED: ID of the voice that the agent will use.

model
string
deprecated

DEPRECATED: Model to use for the call

prompt_id
string

ID of the prompt to use for the call. If empty, default outbound prompt will be used.

use_case_id
string

ID of the use case that should handle the call.

Required string length: 24
agent_id
string

ID of the agent that should handle the call.

Required string length: 24
model_id
string

ID of the model that should handle the call.

Required string length: 24
language
enum<string>

Language of the call. It will default to use case's default language.

Available options:
en-US,
en-GB,
es-MX,
es-ES,
pt-PT,
de-DE,
fr-FR,
pl-PL,
ro-RO,
it-IT
params
any | null

Dynamic parameters to inject into the templated use case prompt.

metadata
object

Custom metadata associated with the call.

campaign_id
string

ID of the campaign that triggered the call.

scheduled_for
string

ISO 8601 UTC datetime the call is scheduled for. If not specified, the call will the executed immediately.

max_duration_mins
integer

Specifies the maximum duration of the call in minutes. This value takes precedence over the maximum duration specified in the use-case model. If neither is provided, the default duration is 10 minutes.

Response

200 - application/json
id
string
required

Unique identifier for the call.

organization_id
string
required

Organization ID.

metadata
object
required

Call metadata.

use_case
object
required

Use case that handled the call.

created
string
required

Date the call was created.

params
object

Dynamic parameters to inject into the templated use case prompt.

Was this page helpful?