Webhooks
Webhook is a simple and effective communication mechanism that allows you to share data with other applications in real time. The data is delivered immediately after the event is executed, without need to frequently query the application via API.
Outgoing webhook
In Unrubble you can define webhooks for three events:
New time off request
Accepted time off request modified
Accepted time off request deleted
Adding a webhook
Go to Settings
(by clicking on the account icon) > Integrations
tab and press the green Configuration
button in the Webhook integration.
Configuration
Type
- Select from the list the event for which you want to define the webhook,- Add your own
URL
, - Define a
Token
(optional).
Sending
Webhooks are sent when:
✅ The time off request is accepted
✅ The time off request is edited and saved
✅ The approved time off request will be deleted
❌ The time off request will be added
❌ A time off request that is not accepted will be deleted
❌ The time off request will be approved by one of the two
Webhook format for an approved vacation request and a modified one:
``{
"applicationNumber": "2020/1",
"applicationType": "Paid time off",
"acronym": "123",
"applicantFullName": "Name and Surname",
"startDateTimeUtc": "1600034400",
"endDateTimeUtc": "1600552800",
"ignoreWeekends": "true",
"ignoreHolidays": "true",
"isWholeDay": "true",
"note": "Note"
}``
Webhook format for deleted accepted application:
``{
"applicationNumber": "2020/1"
}``
Updated on: 12/06/2024
Thank you!