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']).
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 |