Skip to content

Webhooks: Creating Webhooks

To create and configure webhooks, a user in Caspeco is needed. This user should have the Manage Webhooks permission to create, view and edit the webhook configurations. For the user to successfully initialize the employees via webhooks, the user must have permission to fetch all the employees in the system. An example of such a permission is Salary administrator.

To set up a webhook, go to System settings > Integrations in the sidebar navigation menu and press the Webhooks tab.

From there, select an event to subscribe to in the drop-down menu and enter your endpoint URL in the right field. This is the URL your payload is sent to. Click on the Add button to create the new webhook.

On the same page, all active webhooks for your system are listed. You may change the event type or endpoint URL by editing the corresponding fields and pressing Save. To delete an active webhook, press Remove.

There are webhooks for employee and booking related changes.

Webhook setup interface showing event selection

Webhook configuration panel


If you wish to secure your webhooks, head to this article,

When an event is triggered, you will receive a JSON payload containing the event, the system for which the event was triggered, and any additional content. Please look at the example payloads for payload structure and content for different event triggers.

Event Triggered by
employee.created Approving an employee
employee.updated Updating any of the following:
  • First name of an employee
  • Last name of an employee
  • Email address of an employee
  • Profession of an employee
  • Station of an employee
  • Adding a new employment for an employee
employment.ended
  • Employment reaching its end date
  • Employment is removed
employee.deleted Deleting an employee
employee.enabled An employee is set to hidden/visible