Connect an external API
connection_create_apiCreate a generic API connection for a bound worker to call your app's API. Define allowed hostnames for SSRF protection.
Instructions
Create a generic_api connection so a bound worker can call YOUR app's API (outbound). allowedHosts is the required SSRF allowlist (e.g. ['api.example.com']).
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": {
"displayName": "<displayName>",
"allowedHosts": "<allowedHosts>"
},
"name": "connection_create_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | ||
| baseUrl | No | ||
| authMode | No | ||
| bearerToken | No | ||
| displayName | Yes | a label | |
| allowedHosts | Yes | hostnames the worker may call; supports *.example.com | |
| basicPassword | No | ||
| basicUsername | No | ||
| apiKeyHeaderName | No |