Go to your Polaria account and click on Integrations (you can also follow this link)
In the Others tab, you'll find an integration named Custom Webhooks.
Choose an event between New Knowledge Base Entry, Knowledge Base Entry Updated and Knowledge Base Entry Deleted, add your Endpoint URL, and Save. Note that a test WebHook will be sent to this URL. This test WebHook will contain your unique WebHook Security Token to identify Polaria servers.
WebHook content:
{
"event": "test",
"token": "a-unique-token"
}
WebHook content:
{
"event": "faq_created",
"token": "a-unique-token",
"payload": {
"id": 123,
"title": "TEST Webhook",
"content": "<p>TEST Webhook</p>",
"created_at": "2016-12-06T15:04:39.989Z",
"updated_at": "2016-12-06T15:04:39.989Z"
}
}
WebHook content:
{
"event": "faq_updated",
"token": "a-unique-token",
"payload": {
"id": 123,
"title": "TEST Webhook",
"content": "<p>TEST Webhook</p>",
"created_at": "2016-12-06T15:04:39.989Z",
"updated_at": "2016-12-06T15:04:39.989Z"
}
}
WebHook content:
{
"event": "faq_deleted",
"token": "a-unique-token",
"payload": {
"id": 123,
"title": "TEST Webhook",
"content": "<p>TEST Webhook</p>",
"created_at": "2016-12-06T15:04:39.989Z",
"updated_at": "2016-12-06T15:04:39.989Z"
"deleted_at": "2016-12-06T16:04:39.989Z"
}
}