Assistant Edit History

Sendiee keeps the last 10 versions of every assistant — covering dashboard edits, API edits, toggles, channel changes, and restores. Each entry is tagged with changedBy.source = "api" for API-driven changes so the audit trail is unambiguous.

GET/v2.0/assistants/{modelId}/history

Change types

  • create — initial creation. Restorable.
  • config_update — config-only change. Restorable.
  • toggle — isActive flipped. Not restorable.
  • channel_update — channel binding changed. Not restorable.
  • restore — rollback was applied. Not restorable.

Example

cURL
curl -X GET https://api.sendiee.com/v2.0/assistants/kQ8z3cR7hV2bWa/history \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": [
    {
      "versionNumber": 4,
      "changeType": "config_update",
      "changeDescription": "System prompt updated · Memory duration: 60 → 120",
      "changedAt": "2026-04-29T05:18:42.000Z",
      "changedBy": {
        "userId": null,
        "email": "sk_l****a9F2",
        "name": "API · sk_l****a9F2",
        "source": "api"
      },
      "snapshot": {}
    },
    {
      "versionNumber": 3,
      "changeType": "toggle",
      "changeDescription": "Assistant enabled",
      "changedAt": "2026-04-28T11:00:00.000Z",
      "changedBy": {
        "name": "Surya P",
        "email": "[email protected]",
        "source": "dashboard"
      }
    }
  ],
  "total": 4
}

Restore from a Version

Restores an assistant to the snapshot of a prior create or config_update version. The channel binding and isActive flag are preserved — only configuration is rolled back.

POST/v2.0/assistants/{modelId}/restore

Body

cURL
curl -X POST https://api.sendiee.com/v2.0/assistants/kQ8z3cR7hV2bWa/restore \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "versionNumber": 2,
    "clearChatHistory": false
  }'