Basic

This API allows you to initiate outbound phone calls from a specified Millis AI voice agent to any given phone number.

Prerequisites

Obtain your API key from your Millis AI Account.

API Details

  • Method: POST

  • URL:

https://api-west.millis.ai:8080/start_twilio_call
  • Headers:
Content-Type: application/json
Authorization: YOUR_API_KEY
  • Body:
{
  "init_agent": {
    "agent_id": "your_agent_id"
  },
  "phone": "phone_number"
}

Ensure the phone number includes the full international dialing format (e.g., +15555555555), with no dashes or spaces. (Only US phone nubers are supported)

Retrieve your voice agent ID from the Agent Details page on the playground.

title

Example Request using curl

curl -X POST https://api-west.millis.ai:8080/start_twilio_call \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{"init_agent": {"agent_id": "your_agent_id"}, "phone": "phone_number"}'

Replace YOUR_API_KEY, your_agent_id, and phone_number with your specific details.