Overview
When you register a new webhook endpoint, Hirempire sends a challenge request to verify that you own and control the endpoint. Your server must correctly respond to this challenge before it can start receiving webhook events.How It Works
Hirempire Sends a Challenge
When you create or update a webhook, Hirempire sends a
POST request to your endpoint with a challenge field in the JSON body.Your Server Returns the Challenge
Your endpoint must read the
challenge value from the request body and return it exactly as received in the response.Challenge Request
Hirempire sends aPOST request with the following JSON body:
Expected Response
Your server must return the same challenge value in the response body:Example Implementation
Your endpoint should handle both challenge verification requests and regular event notifications on the same URL. Check for the presence of the
challenge field to distinguish between the two.