POST /chef/api/webhook/store_datasubmits a batch of records.GET /chef/api/webhook/batch_statusreports how a batch was processed.
Prerequisites
- An OAuth client with the
empulsapiscope. 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
dataSourceNameagreed 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 theAuthorization header:
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_dataand 60 per minute tobatch_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
202 Accepted:
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 includeerror and error_description fields: