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": {
"greeting": "Hi, I'm your assistant. How can I help?",
"id": "asst_123",
"tools": [
{
"hangup": {},
"type": "hangup"
}
]
},
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"deepfake_detection": {
"enabled": true,
"rtp_timeout": 30,
"timeout": 15
},
"send_silence_when_idle": true,
"webhook_url": "https://www.example.com/server-b/",
"webhook_url_method": "POST"
}Response
Successful response upon making a call control command that includes recording_id.
Example response
{
"data": {
"recording_id": "d7e9c1d4-8b2a-4b8f-b3a7-9a671c9e9b0a",
"result": "ok"
}
}Changes
Changed in 7 of the 61 revisions of this API.1011
- ▲
the
webhook_urls/additionalProperties/request property type/format changed fromstring/uritoarray/request-property-type-changed
- ▲
the response's body type/format changed from
object/to/for statusdefaultresponse-body-type-changed
- ▲
the
errors/items/response's property type/format changed fromobject/to/for statusdefaultresponse-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/integerfor statusdefaultresponse-property-type-changed
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response's body type/format changed from
/toobject/for statusdefaultresponse-body-type-changed
- ▲
the
errors/items/response's property type/format changed from/toobject/for statusdefaultresponse-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/integertointeger/int32for statusdefaultresponse-property-type-changed
- ▲
the
errors/items/source/pointerresponse's property type/format changed fromstring/json-pointertostring/for statusdefaultresponse-property-type-changed
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
assistant/voice_settingsnew-optional-request-property
- ○
- ○
added
Reson8discriminator mapping keys to thetranscription_config/transcription_engine_configrequest propertyrequest-property-discriminator-mapping-added
- ○
added the new
Reson8enum value to the request propertytranscription_config/transcription_enginerequest-property-enum-value-added
- ○
added
TranscriptionEngineReson8Configto thetranscription_config/transcription_engine_configrequest propertyoneOflistrequest-property-one-of-added
- ○
- ○
added
Humaindiscriminator mapping keys to thetranscription_config/transcription_engine_configrequest propertyrequest-property-discriminator-mapping-added
- ○
added the new
Humainenum value to the request propertytranscription_config/transcription_enginerequest-property-enum-value-added
- ○
added
TranscriptionEngineHumainConfigto thetranscription_config/transcription_engine_configrequest propertyoneOflistrequest-property-one-of-added
- ○
- ▲
removed the enum value
parakeet/tdt-0.6b-v3of the request propertytranscription_config/transcription_engine_config/oneOf[subschema #9: Transcription engine Parakeet config]/transcription_modelrequest-property-enum-value-removed
- ○
the
transcription_modelrequest property default value changed fromparakeet/tdt-0.6b-v3tonvidia/parakeet-v3request-property-default-value-changed
- ○
added the new
nvidia/parakeet-v3enum value to the request propertytranscription_config/transcription_engine_config/oneOf[subschema #9: Transcription engine Parakeet config]/transcription_modelrequest-property-enum-value-added
- ▲
- ▲
removed the enum value
nvidia/parakeet-v3of the request propertytranscription_config/transcription_engine_config/oneOf[subschema #9: Transcription engine Parakeet config]/transcription_modelrequest-property-enum-value-removed
- ○
the
transcription_modelrequest property default value changed fromnvidia/parakeet-v3toparakeet/tdt-0.6b-v3request-property-default-value-changed
- ○
added the new
parakeet/tdt-0.6b-v3enum value to the request propertytranscription_config/transcription_engine_config/oneOf[subschema #9: Transcription engine Parakeet config]/transcription_modelrequest-property-enum-value-added
This revision also has 111 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲