Where to find them
API key - Settings → API Key. Each environment has its own, and a development key does not work against production data - see Environments. Regenerating a key invalidates the old value immediately. Connector token - it exists once the end user has authorized the connection. Where you read it depends on how they connected - see How to connect.- Embedded Link -
onSuccesshands your frontend a short-livedtemporary_token, which cannot read data. Swap it from your backend with the token exchange. - Magic Link - there is no temporary token. Look the connector up by the
origin_idyou set, with Get Connectors. - Any route - the connector’s Connector Details panel in the dashboard, for a one-off lookup.
Which endpoints need the connector token
The API key is required everywhere. The connector token is required only where the request names a customer.category is hris, ats or lms. Sending a connector token where it is not used is harmless; omitting it where it is required returns an error rather than an empty result.
A third header on writes
Four HRIS write endpoints also takeX-Idempotency-Key - POST /employees, /employee-payroll-runs, /time-off and /timesheet-entry.
409, see Idempotency.
Auth errors
A
200 with no records is not an auth problem - the connector has no synced data yet. See Sync status.
Related
- Rate Limits - enforced per connector token, not per API key
- Environments - why a key works against one and not the other
- Find the source of an error - when the failure is on the sync rather than your request