REST ClientCalling

ai_unhold

View as MarkdownOpen in Claude

Resume an AI session that was previously put on hold with ai_hold().

Request

idstringRequiredformat: "uuid"
The unique identifying ID of an existing call.
paramsobjectRequired
An object of parameters that will be utilized by the active command.

Response

Call LegobjectRequired
Returned when the call is a standard PSTN, SIP, or WebRTC call.
OR
Fabric Subscriber Device LegobjectRequired

Returned when the call is a Fabric subscriber device leg. The status field is always null for this type.

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
# Hold, perform an action, then resume
client.calling.ai_hold(call_id="call-id-xxx")
# ... do some background processing ...
client.calling.ai_unhold(call_id="call-id-xxx")