Lever Real Time Events
List of Events Supported by Lever
| Knit Event ID | Support | Lever Webhook Event |
|---|---|---|
ats_applications_new | Yes | Application created |
ats_applications_modified | Yes | Candidate stage change, Candidate archive state change, Candidate hired, Interview created, Interview updated, Interview deleted |
ats_applications_deleted | Yes | Candidate deleted |
ats_jobs_new | No | |
ats_jobs_modified | No | |
ats_jobs_deleted | No |
Step 1: Subscribe to events and Get the Webhook URL
To subscribe to real time events in Lever, you can use the Subscribe to Real Time Events API. A cURL for the same would look like:
curl --location 'https://api.getknit.dev/v1.0/events.subscribe' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--data '{
"events": [
"ats_applications_new",
"ats_applications_modified",
"ats_applications_deleted"
]
}'The response for this would look like the following:
{
"success": true,
"data": {
"webhookUrl": "https://workflows.getknit.dev/webhook/wt_3xvamZYMn6Q7bUzZtB"
}
}Step 2: Configure Webhooks in Lever Dashboard
- Log in to your Lever account and access the dashboard using your credentials.
- Navigate to Settings > Integrations and API > Webhooks.
- Enable the relevant webhook events and configure them using the previously obtained webhook URL.
Enabling Webhook
- Use the previously obtained webhook URL to configure each event.
- For each enabled event, there will be a unique Signature Token.
- Share these EventType and SignatureToken pairs with the Knit support team to enable them to receive webhook data on your behalf.
Webhook Events and Signature Tokens Examples
| EventTypeId | SignatureToken |
|---|---|
| applicationCreated | f4376fa4ad4cf1c7252feb34931 |
| candidateStageChange | a92d2965f46a353bd4f63f8ec0 |
| candidateArchiveChange | 0b675964867d265468240fc53 |
| candidateHired | a7d66f63d2b239b0caf758f7c2 |
| candidateDeleted | fd3a7caacd0e6dc85dea0c46d |
| interviewCreated | c9321fc2b3e5ecfbb88f8095f05 |
| interviewUpdated | 9c696d02b672cea920dac46ba |
| interviewDeleted | 9c696d02b672c354343435354 |
Updated 5 months ago