POST
/
register_call
curl --request POST \
  --url https://api-west.millis.ai/register_call \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "agent_id": "<string>",
  "agent_config": {
    "prompt": "<string>",
    "voice": {
      "provider": "elevenlabs",
      "voice_id": "<string>",
      "model": "<string>",
      "settings": {}
    },
    "flow": {
      "user_start_first": true,
      "interruption": {
        "allowed": true,
        "keep_interruption_message": true,
        "first_messsage": true
      },
      "response_delay": 123,
      "auto_fill_responses": {
        "response_gap_threshold": 123,
        "messages": [
          "<string>"
        ]
      },
      "agent_terminate_call": {
        "enabled": true,
        "instruction": "<string>",
        "messages": [
          "<string>"
        ]
      },
      "voicemail": {
        "action": "hangup",
        "message": "<string>",
        "continue_on_voice_activity": true
      },
      "call_transfer": {
        "phone": "<string>",
        "instruction": "<string>",
        "messages": [
          "<string>"
        ]
      },
      "inactivity_handling": {
        "idle_time": 123,
        "message": "<string>"
      },
      "dtmf_dial": {
        "enabled": false,
        "instruction": "<string>"
      }
    },
    "first_message": "<string>",
    "tools": [
      {
        "name": "<string>",
        "params": [
          {
            "name": "<string>",
            "required": true,
            "type": "<string>",
            "description": "<string>"
          }
        ],
        "description": "<string>",
        "webhook": "<string>",
        "header": {},
        "method": "<string>",
        "run_after_call": true,
        "messages": [
          "<string>"
        ],
        "response_mode": "strict",
        "execute_after_message": true,
        "exclude_session_id": true
      }
    ],
    "millis_functions": [
      {
        "name": "<string>",
        "description": "<string>",
        "data": {
          "param": {
            "description": "<string>",
            "name": "<string>",
            "required": true,
            "type": "<string>"
          }
        },
        "type": "<string>",
        "messages": [
          "<string>"
        ]
      }
    ],
    "app_functions": [
      {
        "name": "<string>",
        "credentials": {}
      }
    ],
    "custom_llm_websocket": "<string>",
    "language": "ln",
    "vad_threshold": 123,
    "llm": {
      "model": "gpt-3.5-turbo",
      "temperature": 0,
      "history_settings": {
        "history_message_limit": 123,
        "history_tool_result_limit": 123
      }
    },
    "session_timeout": {
      "max_duration": 123,
      "max_idle": 123,
      "message": "<string>"
    },
    "session_data_webhook": "<string>",
    "privacy_settings": {
      "opt_out_data_collection": true,
      "do_not_call_detection": false
    },
    "custom_vocabulary": {
      "keywords": {}
    },
    "extra_prompt_webhook": "<string>",
    "switch_language": {
      "languages": [
        "<string>"
      ]
    },
    "knowledge_base": {
      "files": [
        "<string>"
      ],
      "messages": [
        "<string>"
      ]
    },
    "speech_to_text": {
      "provider": "deepgram",
      "multilingual": true,
      "model": "<string>"
    },
    "call_settings": {
      "enable_recording": false
    },
    "timezone": "<string>"
  },
  "metadata": {},
  "include_metadata_in_prompt": true,
  "from_phone": "<string>",
  "to_phone": "<string>",
  "session_continuation": {
    "session_id": "<string>",
    "messages": [
      {
        "role": "user",
        "content": "<string>"
      }
    ],
    "identifier_variable": "<string>"
  }
}'
{
  "call_id": "<string>",
  "session_id": "<string>"
}

Headers

authorization
string
required

Body

application/json
agent_id
string | null
agent_config
object | null
metadata
object | null
include_metadata_in_prompt
boolean | null
from_phone
string | null
to_phone
string | null
session_continuation
object | null

Response

200
application/json
Successful Response
call_id
string
required
session_id
string
required