http_client
Executes HTTP requests (GET, POST, PUT, DELETE, HEAD) to any URL. Supports custom headers for authentication or metadata.
Instructions
Make arbitrary HTTP requests from the API hub.
Use this when you need to call a URL but don't have direct
HTTP access. Supports GET, POST, PUT, DELETE, HEAD methods.
Parameters:
url — The full URL to request (required).
method — HTTP method: 'GET' (default), 'POST', 'PUT',
'DELETE', or 'HEAD'.
headers — Optional JSON string of extra headers:
'{"Authorization": "Bearer token"}'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| method | No | GET | |
| headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |