Skip to content

Webhook

Eric Feron edited this page Oct 19, 2023 · 8 revisions

How-to create a webhook

  1. Go to menu Setup>Webhooks configuration
    (if needed, grant your profile (even super-admin) to access the plugin's configuration (menu Administration->Profiles->yourProfile->Webhooks Config))
  2. Create an entry
  • Select the operation type : POST or PUT
  • Enter the URL where to execute the operation
  • Select the authentication type : Basic Authentication or Encoded Basic Authentication
  • Enter the authentication details : user and secret
  • Save
  1. Go to menu Setup>Notifications
  • Enable notifications via webhook
  1. Go to menu Setup>Notifications>Notification templates
  • Add a new template
  • Select a type (StatecheckRule, User, Ticket, ...)
  • Save
  1. Go to menu Setup>Notifications>Notification templates>Template translations
  • Add a new translation
  1. Fill in the translation, with tags if needed, in the "Email text body"
  • In the "Email HTML body", fill in {}, to avoid warning messages in php log.
  • This translation will be sent as HTTP body
  1. Go to menu Setup>Notifications>Notifications
  • Add a new notification
  • Name it
  • Set "Active" to "Yes"
  • Set "Allow response" to "No"
  • Select a type (StatecheckRule, User, Ticket, ...)
  • Select the triggering event
  1. Go to menu Setup>Notifications>Templates
  • Add a template
  • Choose the mode : "Webhook"
  • Select the notification template
  1. Go to menu Setup>Notifications>Recipients
  • Assign recipients
  • Save
Clone this wiki locally