Create an API tool
Authorizations
Body
api_call, call_transfer Configuration for an API_CALL tool, stored in Tool.configuration.
Supports {{variable}} placeholders in url, headers, and body that are
resolved at execution time from the tool's input variables and runtime
metadata (via {{metadata.key}}).
Operator-supplied config for a shared call_transfer target (ENG, voice).
The reusable cold-transfer destination. Mirrors the storage-facing fields of
:class:~src.shared.transfer_contracts.TransferTargetConfig; the request
layer only checks shape/mode here, while destination validity (E.164
or sip: URI) is enforced at the service layer via
:func:~src.custom_tools.api._shared.transfer_target.validate_transfer_target_config
so a bad destination surfaces as a clean 422. The label / when-to-use are
carried on the Tool's name / description, not here.
Defines which fields to extract from a tool response.
Response
Successful Response
api_call, call_transfer