Send raw API request
send_raw_requestSend an authenticated HTTP request to any PocketBase API endpoint. Covers custom routes or new features missing a dedicated tool, attaching the superuser token automatically and returning parsed JSON.
Instructions
Escape hatch: send an arbitrary authenticated HTTP request to any PocketBase API endpoint. Use this for endpoints not covered by a dedicated tool, custom routes added via hooks, or new API features. The Authorization header (superuser token) is attached automatically. path is relative to the server root and must start with '/api/...' (e.g. '/api/collections'). Returns the parsed JSON response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body for POST/PATCH/PUT. | |
| path | Yes | Request path, e.g. '/api/health' or '/api/collections/posts/records'. | |
| query | No | Query parameters as a key/value object. | |
| method | No | HTTP method (default GET). | |
| headers | No | Extra request headers. |