api_request
Send authenticated HTTP requests to the Servonaut REST API from the CLI, returning status, headers, and body or an 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. |