Create API endpoint
create_api_endpointCreate an outbound custom API-endpoint tool in the org (static, non-secret headers only). Attach it to an agent with attach_api_endpoint; set auth by reference via set_endpoint_auth, never inline secrets.
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": {
"name": "<name>"
},
"name": "create_api_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Request URL (may contain {path_parameters}). | |
| name | Yes | Internal name for the endpoint. | |
| method | No | HTTP method. | |
| tool_name | No | The tool name the agent calls it by. | |
| content_type | No | Request content type. | |
| body_template | No | Request body template. | |
| return_direct | No | End the agent turn after this tool returns (for 'send' tools). | |
| static_headers | No | Non-secret static request headers. | |
| response_format | No | How to parse the response. | |
| save_to_history | No | Include the tool result in conversation history (for 'retrieve' tools). | |
| query_parameters | No | Default query parameters. | |
| tool_description | No | What the tool does (shown to the model). | |
| tool_input_schema | No | JSON schema of the arguments the agent supplies. |