api_request
Make authenticated REST API requests to Servonaut via CLI OAuth bearer. Returns status, headers, body, or 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 |
|---|---|---|---|
| method | Yes | HTTP method. | |
| path | Yes | Relative path starting with '/' (e.g. '/api/cli/status'). | |
| query | No | Optional querystring parameters as a flat object. | |
| body | No | Optional JSON-serialisable request body. | |
| headers | No | Optional extra headers. Only Accept, Content-Type, Accept-Language, and If-None-Match are honoured; everything else (including Authorization) is dropped. |