Raw HTB API Call
htb_rawCall any Hack The Box API endpoint directly when a typed tool is missing or an endpoint moved; set method, path, JSON body, base URL, or save binary output.
Instructions
Escape hatch: call any HTB API endpoint directly. Hits the v4 base (https://labs.hackthebox.com/api/v4) by default — pass baseUrl 'https://labs.hackthebox.com/api/v5' for v5 endpoints. path like '/machine/active' (leading slash optional); data takes a raw JSON string body. Set output to save a binary response (for example, GET /challenge/download/) instead of decoding it as text. Relative output paths resolve under the toolkit directory. Use when a typed tool is missing or an endpoint moved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Raw JSON request body string | |
| path | Yes | API path, e.g. '/machine/active' | |
| method | Yes | HTTP method | |
| output | No | Save the response body to this file path | |
| baseUrl | No | Override API base URL (use the v5 URL for v5 endpoints) |