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 12 of the 99 revisions of this API.1224
- ○
added the new optional request property
////new-optional-request-property
- ○
- ○
added
sonioxdiscriminator mapping keys to the///request propertyrequest-property-discriminator-mapping-added
- ○
added
sonioxdiscriminator mapping keys to the/request propertyrequest-property-discriminator-mapping-added
- ○
added to the
///request propertyoneOflistrequest-property-one-of-added
- ○
added to the
/request propertyoneOflistrequest-property-one-of-added
- ○
- ○
added the new
omi-health/omi-med-stt-v1enum value to the request property///request-property-enum-value-added
- ○
- ○
the
request property default value changed fromassemblyai/universal-streamingtoassemblyai/universal-3-5-prorequest-property-default-value-changed
- ○
added the new
assemblyai/universal-3-5-proenum value to the request property///request-property-enum-value-added
- ○
- ▲
removed from the
///request propertyoneOflistrequest-property-one-of-removed
- ▲
removed from the
/request propertyoneOflistrequest-property-one-of-removed
- ○
added
Coherediscriminator mapping keys to the/request propertyrequest-property-discriminator-mapping-added
- ○
removed
rimediscriminator mapping keys from the///request propertyrequest-property-discriminator-mapping-deleted
- ○
removed
rimediscriminator mapping keys from the/request propertyrequest-property-discriminator-mapping-deleted
- ○
added the new
Cohereenum value to the request property/request-property-enum-value-added
- ○
added to the
/request propertyoneOflistrequest-property-one-of-added
This revision also has 34 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
/request property type changed fromstringtoarray, and format fromurito no formatrequest-property-type-changed
- ▲
the response's body type changed from
objectto no type for statusresponse-body-type-changed
- ▲
the
/response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
//response's property type changed fromintegertostring, and format fromint32tointegerfor statusresponse-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 changed from no type to
objectfor statusresponse-body-type-changed
- ▲
the
/response's property type changed from no type toobjectfor statusresponse-property-type-changed
- ▲
the
//response's property type changed fromstringtointeger, and format fromintegertoint32for statusresponse-property-type-changed
- ▲
the
///response's property format changed fromjson-pointerto no format for statusresponse-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
/new-optional-request-property
- ○
- ○
added
Reson8discriminator mapping keys to the/request propertyrequest-property-discriminator-mapping-added
- ○
added the new
Reson8enum value to the request property/request-property-enum-value-added
- ○
added to the
/request propertyoneOflistrequest-property-one-of-added
- ○
- ○
added
Humaindiscriminator mapping keys to the/request propertyrequest-property-discriminator-mapping-added
- ○
added the new
Humainenum value to the request property/request-property-enum-value-added
- ○
added to the
/request propertyoneOflistrequest-property-one-of-added
- ○
Of the 99 revisions, 1 has no diff computed.