Greenhouse Real Time Events
List of Events Supported by Greenhouse
Knit Event ID | Support | Greenhouse Webhook Event |
---|---|---|
ats_applications_new | Yes | Candidate has submitted Application |
ats_applications_modified | Yes | Application Updated, Candidate has changed stage, Candidate or Prospect Rejected, Candidate or Prospect Unrejected |
ats_applications_deleted | Yes | Delete Application |
ats_jobs_new | Yes | Job Created |
ats_jobs_modified | Yes | Job Updated |
ats_jobs_deleted | Yes | Job Deleted |
Subscribe to Greenhouse Real Time Events
Step 1: Subscribe to events and Get the Webhook URL
To subscribe to real time events in Greenhouse, 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",
"ats_jobs_new",
"ats_jobs_modified",
"ats_jobs_deleted"
]
}'
The response for this would look like the following:
{
"success": true,
"data": {
"webhookUrl": "https://workflows.getknit.dev/webhook/wt_3xvamZYMn6Q7bUzZtBz",
"metaData": {
"webhookToken": "greenhouseWebhookToken_VvTGKui1DIXTnrfftn"
}
}
}
This webhook URL and webhook Token needs to be configured in greenhouse dashboard.
Step 2: Configure Webhooks in Greenhouse Dashboard
Your customer should follow these steps to set up the webhook in Greenhouse:
-
Log in to Greenhouse Recruiting
Access the Greenhouse dashboard using your credentials. -
Navigate to the Dev Center
Click the Configure icon on the top navigation bar, then select Dev Center from the left-hand menu. -
Access Web Hooks
In the Dev Center section, click on Web Hooks. -
Create a New Webhook
Click Web Hooks again to begin creating a new webhook. -
Fill in the Webhook Details
- Name: Provide a descriptive name (e.g.,
Candidate Stage Changed Knit Webhook
) - When: Choose the specific event that should trigger the webhook (e.g.,
Candidate has changed stage
) - Endpoint URL: Paste the
webhookUrl
shared by Knit - Secret Key: Paste the
webhookToken
shared by Knit - Error Recipient Email: Keep it empty for now.
- Name: Provide a descriptive name (e.g.,
-
Save the Webhook
Click Create Webhook. A test ping will be sent to verify the connection.
Refer the loom video for setting webhooks in greenhouse dashboard - Greenhouse Webhook Setup
Updated 8 days ago