Перейти к содержимому

Webhooks

Это содержимое пока не доступно на вашем языке.

Receive real-time notifications when events happen in your Plugy projects.

  1. Go to your project settings in my.plugy.me
  2. Navigate to Settings > Webhooks
  3. Enter your webhook endpoint URL
  4. Select the events you want to receive
  5. Click Save
EventDescription
conversation.createdA new conversation was started
conversation.resolvedA conversation was marked as resolved
message.receivedA new customer message was received
message.sentA bot response was sent
escalation.triggeredA conversation was escalated to a human operator
onda.iteration.completedA self-learning iteration finished

All webhook payloads follow this structure:

{
"event": "message.received",
"project_id": "my-company",
"timestamp": "2025-03-20T14:00:00Z",
"data": {
// Event-specific data
}
}

All webhook requests include an HMAC-SHA256 signature in the X-Plugy-Signature header. Verify this signature using your webhook secret to ensure the request came from Plugy.

X-Plugy-Signature: sha256=<hmac-hex-digest>

If your endpoint returns a non-2xx status code, Plugy retries the webhook up to 3 times with exponential backoff.