invoke_api_endpoint
Invoke an endpoint in the Telnyx TypeScript API. Note: use the list_api_endpoints tool to get the list of endpoints and get_api_endpoint_schema tool to get the schema for an endpoint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_name": "<endpoint_name>",
"args": "<args>"
},
"name": "invoke_api_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | The arguments to pass to the endpoint. This must match the schema returned by the `get_api_endpoint_schema` tool. | |
| endpoint_name | Yes | The name of the endpoint to invoke. |