Skip to main content
The data ingestion webhook lets your HRMS or integration platform send referral records to Empuls. Empuls processes each batch, matches referees to referrers, and applies your referral incentive policies. The webhook has two endpoints:
  • POST /chef/api/webhook/store_data submits a batch of records.
  • GET /chef/api/webhook/batch_status reports how a batch was processed.

Prerequisites

  • An OAuth client with the empulsapi scope. The Empuls team issues the client ID, client secret, and refresh token. See Authentication & Authorisation.
  • A referral data webhook integration enabled for your company.
  • A dataSourceName agreed with the Empuls team and configured for your company.
  • If your OAuth client has an IP allowlist, calls must come from an allowed IP address.

Authenticate

Exchange your refresh token for a company access token, then send it in the Authorization header:
Empuls identifies your company from the token alone. Don’t send a user identifier, company ID, or tenant header. Empuls rejects any record that contains company_id, auth_company_id, or auth_user_id with 400 invalid_request.

Submit a batch

dataSourceName and data_type are the only query parameters Empuls accepts. Any other query parameter returns 400 invalid_request. Send all employee data in the request body. The Content-Type header must match data_type:

Limits

  • Up to 1,000 records per call. Split larger batches across sequential calls.
  • Up to 5 MB per request body.
  • Up to 120 calls per minute to store_data and 60 per minute to batch_status.

Record fields

Empuls ignores any other field. Leave optional fields empty rather than sending the string null. A record that is missing a mandatory field, such as work_email, is rejected during processing. For CSV, the first row must be a header row with these field names. Use UTF-8 and comma delimiters.

Example request

Empuls responds with 202 Accepted:
A 202 means Empuls received the batch. It doesn’t mean every record was accepted. Save the batch_id and check the batch status.

Check batch status

status is one of queued, processing, processed, or failed. Records are processed in a scheduled run, so poll about once an hour. Don’t poll more often than every 15 minutes. Once a batch is processed, the response lists each record’s outcome:
An unknown batch_id returns 404 unknown_batch.

Errors

Error responses include error and error_description fields: