Webhook, also referred to as real-time updates, enables application to subscribe to changes in certain pieces of data and receive updates in real-time.Using webhooks, your system will be notified of the changes that it needs to monitor. Your system does not need to regularly poll for changes, when a change occurs - for example, when the status of a contractor's workflow is changed from Declined to Approved in Sitepass - a HTTP POST request is sent to an endpoint URL belonging to your system. To add a webhook, please follow these steps:Log in as an Administrator.Go to Configuration > Developers > WebhookClick on the Add Webhook button.Enter the webhook details: Name - Friendly name of the webhookEndpoint URL - The url you want the webhook to send a HTTP POST request toStatus - The status of the webhook. You can make a webhook to be active or inactive.Endpoints Authentication - An optional Endpoints Authentication header for your webhook endpoint. This value will be added to the request header when Sitepass invokes the configured endpoint.Description - Friendly description of the webhookEvents - The webhook events in which you want Sitepass to trigger the webhook request to.contractor.connected - When a contractor connects to youcontractor.details.updated - When a contractor’s details are updatedcontractor.workflow.status_changed - When a contractor’s workflow status changescontractor.workflow.step_updated - When a contractor’s step is updatedworker.details.update - When a worker's details are updatedworker.workflow.step_updated - When a workflow's step is updatedworker.workflow.status_changed - When a worker workflow's status changesteam_member.details.update - When a team member's details are upatedteam_member.workflow.step_updated - When a team member;s workflow step is updatedteam_member.workflow.status_changed - When a team member's workflow status changesClick the Submit button to save the webhook settings.For each event occurence, Sitepass POSTs the webhook data to your endpoint in JSON format. The full event details are included and can be used directly after parsing the JSON. Thus, at the minimum, the webhook endpoint needs to expect data through a POST request and confirm successful receipt of that data.It is important for your system to response with an receipt that acknowleged the event. Your endpoint must return a 2xx HTTP code status to Sitepass. All response codes outside this range, including the 3xx codes, indicate to Sitepass that you did not receive the event. If the 2xx code status is not received within 3 seconds, Sitepass will flag the notification as failed and will display the status notification as failed on the Webhooks page.