api_request
Send authenticated requests to the Servonaut REST API. Returns response status, headers, and body, or a structured error envelope.
Instructions
Make an authenticated request against the servonaut.dev REST API using the CLI's OAuth bearer. The bearer never leaves the CLI. Returns {status, headers, body} or a structured {error} envelope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional JSON-serialisable request body. | |
| path | Yes | Relative path starting with '/' (e.g. '/api/cli/status'). | |
| query | No | Optional querystring parameters as a flat object. | |
| method | Yes | HTTP method. | |
| headers | No | Optional extra headers. Only Accept, Content-Type, Accept-Language, and If-None-Match are honoured; everything else (including Authorization) is dropped. |