AI change history
Use GET /v2/pub/ai-history to see recent edits, newest first. Filter by subjectType or subjectKey, such as business-hours. To continue, send nextCursor as cursor with the same filters. A null cursor marks the end.
| Settings | View changes and previews | Restore |
|---|---|---|
| Company overview, service areas and business hours | knowledge:read |
knowledge:write |
| Human escalation | escalation:read |
escalation:write |
| Agent prompts and behavior | agents:read |
agents:write |
Undo a change
- Find the change that saved the settings you want back. For example, to undo today's edit, choose the earlier change that saved yesterday's settings. Read
GET /v2/pub/ai-history/{changeId}to see the before and after values. - Call
GET /v2/pub/ai-history/{changeId}/restore-preview. For a change with several revisions, add?revisionId={revisionId}to choose one. ComparecurrentSnapshotwithtargetSnapshot, and keep the returnedversionandrevisionId. IfisCurrentis true, the settings already match. - After reviewing the differences, send
POST /v2/pub/ai-history/{changeId}/restorewith the preview values in the JSON body.
{
"revisionId": "7307a19d-a972-4e64-9cfd-4ae994713ff5",
"expectedVersion": "a4a221e66d51be5f9cc42c4c083a5ee4f1a315d77cc1817cfe79997d09a8b104"
}
A successful restore takes effect immediately. historyChangeId identifies the new entry attributed to your key. If the settings already match, the response says NO_CHANGE and the ID is null. On 409 VERSION_CONFLICT, preview the differences again before restoring. If the request times out, check history and the current settings before retrying.