Create a Voice Action

Creates a voice action for the authenticated client. The required credentials and config fields depend on the type/provider combination:

  • SCHEDULE_EVENT (microsoft): requires credentials and config.destination (e-mail). config.calendar_id and config.timezone are optional.
  • SEND_SMS (internal): requires the top-level message field — the text the agent sends by SMS to the number being called, up to 1600 characters. It is checked against the same blocked words as POST /v1/sms; a message carrying one is refused with 422. The SMS is charged to the app like any other SMS.
  • TRANSFER_CALL (internal): requires the top-level phone field (10–16 digits).
  • HTTP_WEBHOOK (internal): requires the top-level endpoint (HTTPS URL); the authorization_token field is optional. At the end of the call a webhook with summarized call data is sent to endpoint, using authorization_token for authorization when provided.

Microsoft credentials: tenant, client_id, client_secret. A maximum of 50 actions per client is enforced.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

SCHEDULE_EVENT with microsoft credentials and config.destination.

string
enum
required
Allowed:
string
enum
required
Allowed:
config
object
required

Action configuration. destination is required for SCHEDULE_EVENT; from_address and destination are required for SEND_EMAIL.

string
required
length ≤ 100
credentials
required
string

Required for TRANSFER_CALL (10–16 digits).

uri

Required for HTTP_WEBHOOK. HTTPS URL the webhook is POSTed to at the end of the call (max 2048 characters).

string

Optional for HTTP_WEBHOOK. Authorization token sent in the webhook request to the client endpoint when provided (max 2048 characters).

string
length between 1 and 1600

Required for SEND_SMS. Text the agent sends by SMS to the number being called (max 1600 characters). A message carrying a blocked word — the same list as POST /v1/sms — is refused with 422.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json