qobrix_get_changes
Retrieve change history for a CRM record, showing before and after values, user, and timestamp.
Instructions
Retrieve audit / change-log entries for a single CRM record (Qobrix LogAudit). Calls GET /api/v2/{resource}/{id}/changes. Each row has original (before), changed (after), user_id (who), timestamp, type (create/update/delete). IMPORTANT: LogAudit.source is the resource name (e.g. 'Opportunities'), NOT the lead marketing source field. Field-level before/after for e.g. lead source are keys inside original and changed objects. For a filtered timeline of one field use qobrix_field_change_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record UUID — the opportunity/property/contact primary key | |
| page | No | Page number (default 1). Used on the fast path (no boost). Ignored when boost is set (ranking returns a single top-N page). | |
| sort | No | Sort field(s). Prefix - for descending. Example: '-timestamp' (newest first). | |
| limit | No | How many results to return (1-100, default 10). With boost: top-N after ranking. Without boost: page size. Raise when the user wants more options; keep low to avoid context overload. | |
| fields | No | LogAudit columns to return. Default all. Recommended for large scans: ['timestamp','user_id','primary_key','original','changed','type'] | |
| search | No | Hard-filter Qobrix search expression (server-side precision). Operators: == != <> < > <= >=, contains, starts with, ends with, in [...], not in, ranges in a..b, and/or/not. Functions: DISTANCE_FROM, IN_POLYGON, TRANSLATED, MIN/MAX, DAYS_AGO(n), MONTHS_AGO(n), DAYS_FROM_NOW(n). Shortcuts: NOW, TODAY, THIS_WEEK, LAST_MONTH, THIS_YEAR, CURRENT_USER. Strings double-quoted; booleans true/false; association paths e.g. SalespersonUsers.Contacts.country. Example: status == "available" and sale_rent == "for_sale" and list_selling_price_amount <= 500000. For the full grammar + field cheatsheets call qobrix_search_dsl_help. For enum values call qobrix_get_field_options; for all fields call qobrix_get_schema. | |
| resource | Yes | CRM resource name. PascalCase (e.g. 'Opportunities', 'Properties', 'Contracts') or kebab slug (e.g. 'opportunities'). Maps to GET /api/v2/{resource}/changes. Common values: Opportunities, Properties, Contacts, Contracts, Offers, Tasks, Calls, Meetings. |