Webhooks
How to use the Apriora Webhooks API
Introduction
Webhooks are a way for web applications to communicate with each other in real-time. They are user-defined HTTP callbacks that are triggered by specific events. When an event occurs, the source site makes an HTTP POST
request to the URL configured for the webhook.
To set up the webhook, you need to log into your Apriora dashboard, go to the Settings page, and add the URL where you want to receive the webhook notifications under Integrations/Apriora API
.
Webhook Events
Each webhook event has a specific payload that is sent to the URL configured for the webhook. The payload contains information about the event that triggered the webhook.
We now reference each completed interview using the reportId
. This is
equivalent to the interviewId
in the Get Interviews route.
The following are the events that trigger webhooks:
Event Type | Description |
---|---|
session.started | Triggered once a candidate enters the room with Alex and starts (or resumes) that interview. |
session.paused | Sent when a candidate leaves an interview midway or it gets interrupted. |
session.ended | Triggered once the candidate finishes their conversation with Alex and the end of the interview is reached (meaning they can’t return to it). |
session.completed | Sent once the evaluation is complete and the report is available. The resulting data is included in this event payload. |
session.started
This event is sent when a candidate enters the room with Alex and starts. It also gets sent if the candidate is resuming a paused interview.
Example Payload:
session.paused
This event is sent when a candidate leaves an interview midway or it gets interrupted. The candidate left before the interview completed, so still has a chance to complete it.
Example Payload:
session.ended
This event is sent once the candidate finishes their conversation with Alex and the end of the interview is reached. At this point they can’t return to the interview and their report is being generated.
Example Payload:
session.completed
This event is triggered when an interview is completed.
Example Payload: