Get started
Authentication and request basics
Your API address
Each company calls the APIAPIA way for other software to read from and write to a system automatically. on its own workspace address:
https://<your-company>.<app-domain>/api/v1 A key authenticates only against the workspace it was created in. The machine-readable OpenAPI 3.1 document is served at /api/v1/openapi.json on the same address; point a client generator at it.
API keys
Send your key in the Authorization header:
Authorization: Bearer hcm_live_<prefix>_<secret> A workspace admin creates keys under Settings › Security › API keys. The secret is shown once, when the key is created; store it in your secrets manager. Revoke a key there too.
curl -s https://<your-company>.<app-domain>/api/v1/me \
-H "Authorization: Bearer YOUR_API_KEY" GET /me returns the key’s id, name, scopes and rate limitRate limitA cap on how many requests software can send in a minute., and whether it belongs to a sandboxSandboxA practice workspace where nothing real gets sent, paid or changed..
Scopes
Each key carries a list of scopes, and every operation in the API reference names the one it needs. Scopes map one to one to the product’s permissions, and a key can only be given scopes the person creating it holds, so a key can never do more than its creator. Give each integration only the scopes it uses.
Personal data
The API follows the product’s masking rules:
- Candidate email and phone are always masked, and a key can’t unmask them.
- Offer pay comes back only to a key that also holds
ats.offer.comp.read. - Payslips are available only once a payroll runPayroll runOne round of working out everyone's pay for the month. is finalised, and review ratings only once HR has released them.
Pagination
Collections return { data, nextCursor }. Pass nextCursor back as ?cursor= for the next page; nextCursor: null means you’ve read everything. ?limit= takes 1 to 200 and defaults to 50.
Retrying writes safely
Send an Idempotency-Key header on any POST. A retry with the same key replays the first response instead of writing twice. Keys are scoped per operation and held for 24 hours.
Errors
Every failure returns the same shape:
{ "error": { "code": "…", "message": "…", "details": … } } | Status | Meaning |
|---|---|
400 | The request was malformed. |
401 | The key is missing or invalid. |
403 | The key doesn’t carry the scope the operation needs. |
404 | Not found, or not visible to this key. |
422 | The body failed validation; details says where. |
429 | Over the rate limit; wait for Retry-After seconds. |
code is stable and machine-readable; message is for people and may change.