Publishers will be available in version 1.3.0

Publishers can be used to publish events to external services and destinations. For now only a generic webhook publisher is implemented but more are planned. All publishers are configured in the backstage.

In general a publisher has 3 events it triggers on:

  • publish: once the event is published in lauti
  • update: once the event is updated in lauti
  • unpublish: once the event is deleted or unpublished in lauti

Each publisher always has two fields:

  • Enabled: wether the publisher is active
  • Name: Name of the publisher

Webhook Publisher

The webhook publisher is a very generic one that will send a post request for each event to a configured url.

Fields

Url: The external url e.g. https://example.com

Authorization Header: Will set the Authorization header e.g. my-secret

Payloads

Publish payload:

{
  action: "publish",
  event: {
    id: "...",
    ...
  }
}

Update payload:

{
  action: "update",
  event: {
    id: "...",
    ...
  },
  id: "..."
}

Unpublish payload:

{
  action: "unpublish",
  id: "..."
}