curl --location --request POST 'https://api.hirempire.com/v1/create-webhook' \ --header 'Authorization: Bearer YOUR_TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ "request_url": "https://example.com/webhook", "events": [ "job_added", "applicant_applied", "meeting_booked" ] }'
{ "success": true, "data": { "id": "8fc4ea3c-ecc4-4a92-96fd-a14436a79a1b", "events": [ "job_added", "applicant_applied", "meeting_booked" ] } }
Register a new webhook endpoint to receive event notifications
Bearer <token>
<token>
job_added
job_activated
job_deactivated
job_deleted
applicant_applied
cv_upload_completed
meeting_booked
Show Data Object Properties
{ "success": false, "error": "Field 'request_url' is required and must be a string." }
{ "success": false, "error": "Field 'events' is required and must be an array." }
{ "success": false, "error": "Invalid event: invalid_event_name." }
{ "success": false, "error": "Invalid token" }
{ "success": false, "error": "Input is incorrect." }
{ "success": false, "error": "Token is expired" }
{ "success": false, "error": "Token is missing required scope" }
{ "success": false, "error": "You already have an active webhook." }
{ "success": false, "error": "Invalid request url" }
{ "success": false, "error": "Token has been deleted" }
Was this page helpful?