Answer call
Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call.
Expected Webhooks:
- call.answered
- call.hold and call.unhold if the call is held/unheld
- call.deepfake_detection.result if deepfake_detection was enabled
- call.deepfake_detection.error if deepfake_detection was enabled and an error occurred
- streaming.started, streaming.stopped or streaming.failed if stream_url was set
When the record parameter is set to record-from-answer, the response will include a recording_id field.
Path parameters
Unique identifier and token for controlling the call
Request body
Example request
{
"assistant": {
"id": "asst_123",
"greeting": "Hi, I'm your assistant. How can I help?",
"tools": [
{
"type": "hangup",
"hangup": {}
}
]
},
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"webhook_url": "https://www.example.com/server-b/",
"webhook_url_method": "POST",
"send_silence_when_idle": true,
"deepfake_detection": {
"enabled": true,
"timeout": 15,
"rtp_timeout": 30
}
}Response
Successful response upon making a call control command that includes recording_id.
Example response
{
"data": {
"result": "ok",
"recording_id": "d7e9c1d4-8b2a-4b8f-b3a7-9a671c9e9b0a"
}
}Changes
Changed in 7 of the 47 revisions of this API.327
- ○
added the new optional request property
conversation_relay_config/languages/items/voice_settings/oneOf[subschema #8: Inworld Voice Settings]/delivery_modenew-optional-request-property
- ○
added the new optional request property
conversation_relay_config/voice_settings/oneOf[subschema #8: Inworld Voice Settings]/delivery_modenew-optional-request-property
- ○
- ▲
removed
subschema #1: targets_listfrom theassistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetsrequest propertyoneOflistrequest-property-one-of-removed
- ○
added
subschema #1to theassistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetsrequest propertyoneOflistrequest-property-one-of-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
conversation_relay_confignew-optional-request-property
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added
Sonioxdiscriminator mapping keys to thetranscription_config/transcription_engine_configrequest propertyrequest-property-discriminator-mapping-added
- ○
added the new
Sonioxenum value to the request propertytranscription_config/transcription_enginerequest-property-enum-value-added
- ○
added
TranscriptionEngineSonioxConfigto thetranscription_config/transcription_engine_configrequest propertyoneOflistrequest-property-one-of-added
- ○
- ▲
removed
subschema #1from theassistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetsrequest propertyoneOflistrequest-property-one-of-removed
- ○
added
Speechmaticsdiscriminator mapping keys to thetranscription_config/transcription_engine_configrequest propertyrequest-property-discriminator-mapping-added
- ○
added the new
Speechmaticsenum value to the request propertytranscription_config/transcription_enginerequest-property-enum-value-added
- ○
added
TranscriptionEngineSpeechmaticsConfigto thetranscription_config/transcription_engine_configrequest propertyoneOflistrequest-property-one-of-added
- ○
added
subschema #1: targets_listto theassistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetsrequest propertyoneOflistrequest-property-one-of-added
- ▲
- ▲
removed
subschema #1: targets_listfrom theassistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetsrequest propertyoneOflistrequest-property-one-of-removed
- ○
added
subschema #1to theassistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetsrequest propertyoneOflistrequest-property-one-of-added
- ▲
- ○
added the new optional request property
assistant/external_llm/authentication_methodnew-optional-request-property
- ○
added the new optional request property
assistant/external_llm/base_urlnew-optional-request-property
- ○
added the new optional request property
assistant/external_llm/certificate_refnew-optional-request-property
- ○
added the new optional request property
assistant/external_llm/forward_metadatanew-optional-request-property
- ○
added the new optional request property
assistant/external_llm/llm_api_key_refnew-optional-request-property
- ○
added the new optional request property
assistant/external_llm/modelnew-optional-request-property
- ○
added the new optional request property
assistant/external_llm/token_retrieval_urlnew-optional-request-property
- ○
added the new optional request property
assistant/fallback_config/external_llmnew-optional-request-property
- ○
added the new optional request property
assistant/fallback_config/llm_api_key_refnew-optional-request-property
- ○
added the new optional request property
assistant/fallback_config/modelnew-optional-request-property
- ○
added
xAIAssemblyAIdiscriminator mapping keys to thetranscription_config/transcription_engine_configrequest propertyrequest-property-discriminator-mapping-added
- ○
added the new
AssemblyAIenum value to the request propertytranscription_config/transcription_enginerequest-property-enum-value-added
- ○
added the new
xAIenum value to the request propertytranscription_config/transcription_enginerequest-property-enum-value-added
- ○
request property
assistant/tools/items/oneOf[subschema #5: TransferTool]/transfer/targetslist-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
added
TranscriptionEngineXaiConfigTranscriptionEngineAssemblyaiConfigto thetranscription_config/transcription_engine_configrequest propertyoneOflistrequest-property-one-of-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○