http_request
Test APIs by sending HTTP(S) requests and inspecting status, timing, headers, and body. Supports JSON, form, and raw bodies.
Instructions
Make an HTTP(S) request and report status, timing, headers and body — for testing the API you are building or calling. JSON bodies are pretty-printed; large bodies are truncated. Pass json= for a JSON body (sets Content-Type), or body= for anything else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL. http:// is assumed if no scheme is given. | |
| body | No | Raw request body. | |
| form | No | Body sent as application/x-www-form-urlencoded. | |
| json | No | Body sent as JSON (any value). Sets Content-Type: application/json. | |
| query | No | Query parameters appended to the URL. | |
| assign | No | Store the response body in the server variable of this name instead of relying on it coming back through the conversation. See the vars tool. | |
| method | No | GET (default), POST, PUT, PATCH, DELETE, HEAD, OPTIONS... | |
| headers | No | Request headers. | |
| insecure | No | Accept invalid TLS certificates (self-signed dev servers). | |
| max_bytes | No | Byte cap on the returned body. Default: server maxOutputBytes. | |
| timeout_ms | No | Abort after this long. Default 30000. | |
| headers_only | No | Report status and headers, skip the body. | |
| follow_redirects | No | Follow 3xx. Default true. |