Agents
Versions
Every change to an agent is saved as a version, with who made it and what changed field by field, so you can see an agent's history and restore an earlier configuration. Versions are read and restored in the console, on the agent's Versions tab.
When a version is saved
| Action | action | Notes |
|---|---|---|
POST /api/v1/agents (or creating it in the console) | create | Version 1. |
PUT /api/v1/agents/{id} (or saving it in the console) | update | Only if something changed. A save with no changes does not create a version. |
| Duplicate in the console | duplicate | Version 1 of the new agent. |
| Restore on the Versions tab | restore | A new version with the old configuration. |
The agent’s version field is its current version number. The last 10 versions of each agent are kept; older ones are deleted. Deleting an agent deletes its versions.
Connecting a number from the Phone numbers page changes the agent’s
phone_numberand version number, but does not add an entry to the version list.
What each version shows
| Field | Meaning |
|---|---|
| Version | The version number. |
| When | When it was saved. |
| By | Who saved it: a person’s name, or key:<key name> for an API key. |
| Action | create, update, duplicate or restore. |
| Restored from | For restore, the version that was restored. |
| Changes | Each changed field, by its dotted path (for example llm.temperature), before and after. Tool headers are masked. |
Restore a version
Restore replaces the agent’s configuration with that version’s and saves it as a new version with action: "restore". Nothing is lost: the version you replaced stays in the list.
A restore is checked like any save: the providers must be available to your workspace, and the phone number must not belong to another workspace. Only the last 10 versions can be restored.