Skip to content
AISARAISAR
Snippets

Snippets

Snippet deleted

snippet.deleted

Fires when a quick reply is deleted together with its files. The payload carries only `id` and `name`: no text and no attachments in this event. The quick reply library is shared by the whole company, so the integration channel filter (`channelFilter`) does not apply to these events.

HTTP request

AISAR sends a signed POST request to your webhook_url:

http
POST {webhook_url}
Content-Type: application/json
X-AISAR-Signature: sha256=...

{
  "event": "snippet.deleted",
  "event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
  "timestamp": "2026-11-14T08:00:00.000000Z",
  "company_id": 1,
  "data": {
    "snippet": {
      "id": 7,
      "name": "Прайс"
    }
  }
}

The X-AISAR-Signature header carries an HMAC-SHA256 signature of the request body — use it to verify the request came from AISAR.

Example payload

json
{
  "event": "snippet.deleted",
  "event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
  "timestamp": "2026-11-14T08:00:00.000000Z",
  "company_id": 1,
  "data": {
    "snippet": {
      "id": 7,
      "name": "Прайс"
    }
  }
}

Payload fields

FieldTypeDescription
snippet.idintegerID of the deleted snippet
snippet.namestringIts name