Generic Clio API v4 call
clio_api_requestSend GET, POST, or PATCH requests to Clio API v4 endpoints with OpenAPI validation; writes return a preview and require confirmation.
Instructions
Performs a GET, POST or PATCH on any Clio API v4 endpoint (path relative to /api/v4, e.g. '/matters' or '/matters/123'; or a full URL from meta.paging.next). DELETE is not allowed. The request is validated against the OpenAPI catalog (unknown path = error; unknown parameters = warning). For GET pass query.fields (without it the API returns only id and etag). The POST/PATCH body is automatically wrapped in {"data": ...}. Writes follow the preview → confirm handshake: the first call returns a preview with a confirmation token; repeat with confirm set to that token after the user approves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body for POST/PATCH (the content of 'data') | |
| path | Yes | Path relative to /api/v4 or a full URL | |
| query | No | Query parameters, e.g. {fields: 'id,display_number', limit: 50, order: 'id(asc)'} | |
| method | Yes | HTTP method | |
| confirm | No | confirm=true performs the write. Use it directly when the user's request contains everything needed; call without confirm (preview) only when you want to check the data first or something is unclear. | |
| skip_validation | No | true = do not block the request because of validation errors (e.g. a new endpoint not in the catalog) |