Take a call off hold (deprecated)
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Calls/0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d/unhold';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"FallbackMethod":"GET","FallbackUrl":"https://example.com/voice/fallback.xml","Method":"GET","Status":"completed","StatusCallback":"https://example.com/voice/status","StatusCallbackMethod":"GET","TinyML":"<Response><Say>Please hold</Say><Play>https://example.com/audio/hold.mp3</Play></Response>","Url":"https://example.com/voice/transfer.xml"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Calls/0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d/unhold \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "FallbackMethod": "GET", "FallbackUrl": "https://example.com/voice/fallback.xml", "Method": "GET", "Status": "completed", "StatusCallback": "https://example.com/voice/status", "StatusCallbackMethod": "GET", "TinyML": "<Response><Say>Please hold</Say><Play>https://example.com/audio/hold.mp3</Play></Response>", "Url": "https://example.com/voice/transfer.xml" }'Deprecated. Despite its path, this route is the same operation as POST /Accounts/{auth_id}/Calls/{call_sid} (updateCall): it reads the same JSON body and does not take the call off hold. To unhold a party, update its conference participant with hold=false.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account Auth ID, or the Auth ID of a sub-account you own
Example
AC000000000000000000Call SID (a UUID)
Example
0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7dRequest Bodyrequired
Section titled “ Request Bodyrequired ”The same body as updateCall
object
HTTP method for FallbackUrl: GET or POST.
Example
POSTNew fallback URL for the call’s TinyML requests.
Example
https://example.com/voice/fallback.xmlHTTP method used to request Url and FallbackUrl: GET or POST.
Example
POSTcompleted hangs the call up. canceled hangs it up only if it has not been answered yet.
Example
completedNew URL for the call’s status callbacks.
Example
https://example.com/voice/statusDo not send: because of a known issue the value replaces the stored StatusCallback URL instead of its method.
Example
A new TinyML document for the call to run now.
Example
<Response><Say>Please hold</Say><Play>https://example.com/audio/hold.mp3</Play></Response>Absolute URL of a new TinyML document: the call leaves what it is doing and runs it. Ignored when it is the URL the call is already running.
Example
https://example.com/voice/transfer.xmlResponses
Section titled “ Responses ”OK
object
Auth ID of the account the call belongs to.
Not currently populated.
Not currently populated.
API version, v1.
Caller name, when known.
When the call record was created.
When the call record was last updated.
outbound-api for calls created with this API.
Billed duration in seconds, once the call has ended.
When the call ended.
Not currently populated.
The caller, as given in the request.
The caller in E.164 form (digits only, with +), for number destinations.
Not currently populated.
Detail text, set by some failures of the legacy hold route.
SID of the call that created this leg, for legs dialled from another call.
SID of the phone number the call used, when known.
Price of the call, once rated.
Currency of price, USD.
When the call was queued, e.g. Thu Nov 26 09:15:02 +0000 2026. Set on create.
Call SID (a UUID).
When the call started.
Call status: queued on create; afterwards ringing, in-progress, completed, busy, no-answer, failed or canceled, as the call record holds it. The legacy hold route sets success.
Related resources.
object
Not currently populated.
URI of the call’s recordings, /v1/Accounts/{auth_id}/Calls/{sid}/Recordings.
The destination, as given in the request (a configured prefix may have been removed).
The destination in E.164 form (digits only, with +), for number destinations.
Not currently populated.
Call type from the call record, e.g. Number or Sip.
The call’s URI, /v1/Accounts/{auth_id}/Calls/{sid}.
Example
{ "account_sid": "AC000000000000000000", "annotation": "", "answered_by": "", "api_version": "v1", "caller_name": "", "date_created": "", "date_updated": "", "direction": "outbound-api", "duration": "42", "end_time": "", "forwarded_from": "", "from": "+15550100999", "from_formatted": "+15550100999", "group_sid": "", "message": "", "parent_call_sid": "", "phone_number_sid": "", "price": "", "price_unit": "USD", "queue_time": "Thu Nov 26 09:15:02 +0000 2026", "sid": "0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d", "start_time": "", "status": "queued", "subresource_uris": { "recordings": "/v1/Accounts/AC000000000000000000/Calls/0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d/Recordings" }, "to": "+15550100123", "to_formatted": "+15550100123", "trunk_sid": "", "type": "", "uri": "/v1/Accounts/AC000000000000000000/Calls/0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d"}The body is not JSON (the body then holds the call’s current details)
object
Auth ID of the account the call belongs to.
Not currently populated.
Not currently populated.
API version, v1.
Caller name, when known.
When the call record was created.
When the call record was last updated.
outbound-api for calls created with this API.
Billed duration in seconds, once the call has ended.
When the call ended.
Not currently populated.
The caller, as given in the request.
The caller in E.164 form (digits only, with +), for number destinations.
Not currently populated.
Detail text, set by some failures of the legacy hold route.
SID of the call that created this leg, for legs dialled from another call.
SID of the phone number the call used, when known.
Price of the call, once rated.
Currency of price, USD.
When the call was queued, e.g. Thu Nov 26 09:15:02 +0000 2026. Set on create.
Call SID (a UUID).
When the call started.
Call status: queued on create; afterwards ringing, in-progress, completed, busy, no-answer, failed or canceled, as the call record holds it. The legacy hold route sets success.
Related resources.
object
Not currently populated.
URI of the call’s recordings, /v1/Accounts/{auth_id}/Calls/{sid}/Recordings.
The destination, as given in the request (a configured prefix may have been removed).
The destination in E.164 form (digits only, with +), for number destinations.
Not currently populated.
Call type from the call record, e.g. Number or Sip.
The call’s URI, /v1/Accounts/{auth_id}/Calls/{sid}.
Example
{ "account_sid": "AC000000000000000000", "annotation": "", "answered_by": "", "api_version": "v1", "caller_name": "", "date_created": "", "date_updated": "", "direction": "outbound-api", "duration": "42", "end_time": "", "forwarded_from": "", "from": "+15550100999", "from_formatted": "+15550100999", "group_sid": "", "message": "", "parent_call_sid": "", "phone_number_sid": "", "price": "", "price_unit": "USD", "queue_time": "Thu Nov 26 09:15:02 +0000 2026", "sid": "0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d", "start_time": "", "status": "queued", "subresource_uris": { "recordings": "/v1/Accounts/AC000000000000000000/Calls/0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d/Recordings" }, "to": "+15550100123", "to_formatted": "+15550100123", "trunk_sid": "", "type": "", "uri": "/v1/Accounts/AC000000000000000000/Calls/0c9b8a7d-6e5f-4a3b-9c1d-2e3f4a5b6c7d"}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleNo live call and no call record with this SID (body is an empty JSON string)
Example generated
exampleThe call has ended or the media server refused the update
object
Always call could not be updated.
Always failed.
Example
{ "message": "call could not be updated", "status": "failed"}