Get started

Authentication and request basics

Your API address

Each company calls the API on its own workspace address:

Base URL
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:

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.

Check a key: who am I?
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 limit, and whether it belongs to a sandbox.

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 run is finalised, and review ratings only once HR has released them.

Pagination

Cursor-based pagination. Beta

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

Idempotency keys on POST requests. Beta

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 body
{ "error": { "code": "…", "message": "…", "details": … } }
StatusMeaning
400The request was malformed.
401The key is missing or invalid.
403The key doesn’t carry the scope the operation needs.
404Not found, or not visible to this key.
422The body failed validation; details says where.
429Over the rate limit; wait for Retry-After seconds.

code is stable and machine-readable; message is for people and may change.