api_request
Send authenticated requests to the servonaut.dev REST API and receive status, headers, and body or a structured error. The OAuth bearer stays in the CLI while sensitive headers are filtered.
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. |