api-connector
Send HTTP requests to any REST API with custom headers, JSON body, retry logic, and configurable timeout. Returns response status, headers, and body.
Instructions
Make HTTP requests to any REST API with custom headers, JSON body, retry, and configurable timeout. Returns the response status, headers, and body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The full URL to send the request to | |
| body | No | Request body (JSON). Ignored for GET and HEAD requests. | |
| method | No | HTTP method to use | GET |
| headers | No | Custom request headers as key-value pairs (e.g. { "Authorization": "Bearer token123" }) | |
| format_json | No | Pretty-print JSON responses with indentation (default: true) | |
| max_retries | No | Maximum number of retry attempts on transient errors (0-5, default: 3) | |
| timeout_seconds | No | Request timeout in seconds (1-120, default: 30) |