General

If you want to react to changes happening in Makaira you can subscribe to our webhook. Every Entity that is available in Makaira can deliver a Webhook call.


Usage

You can use the webhook to trigger external processes in your systems outside of Makaira or to sync data from one Makaira installation to another.


Setup of Webhooks

To get started with webhooks, please contact our support and provide the following information:

  • Public Endpoint to deliver Webhooks to
  • Which Entities should be delivered via Webhook calls
  • On which Makaira Installation/Instance you want to have these webhook calls sent from

Body of a Webhook Call

We are delivering a POST Call to your endpoint with the following body

{
    "customer": "your-subdomain",
    "instance": "stage",
    "type": "page",
    "ids": ["5"],
    "action": "create"
}
  • customer is the subdomain of your makaira installation
  • instance is the instance name where the Webhook is set up
  • type tells you what type of entity was changed
  • id is a list of entity ids that have been changed (e.g. in a bulk delete there could be multiple ids in this array)
  • action tells you which action was executed in the change (one of create, update, delete)