api_request
Send direct HTTP requests to the TOCOnline API for any endpoint. Supports GET, POST, PATCH, PUT, DELETE with safety confirmation for destructive operations.
Instructions
Escape hatch for endpoints not covered by typed tools.
Path must match /api/<resource>[/<sub>...]. Destructive methods require
confirm=true. Prefer the typed tools (list_customers, create_sales_document,
etc.) when they fit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw JSON:API envelope for writes, shape `{data: {type, attributes, ...}}`. | |
| path | Yes | API path starting with /api/, e.g. /api/commercial_purchases_documents. | |
| query | No | Query parameters as a flat object. | |
| method | Yes | HTTP method. | |
| confirm | No | Must be true for POST/PATCH/PUT/DELETE. Safety gate against unintended writes. | |
| flatten | No | Flatten JSON:API response. Set false to see the raw envelope. |