API basics

Authenticate with a bearer token from Settings → API keys, then call any endpoint over HTTPS.

curl https://api.thepayrollx.com/v1/employees \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses are JSON. Common resources include /v1/employees, /v1/attendance, /v1/leave and /v1/payruns. List endpoints are paginated with page and per_page parameters.

Keep keys secret

Treat API keys like passwords. Use a separate key per integration so you can revoke one without affecting the others.

Next: Webhooks