Skip to navigation

Authentication

Every request must send your API key in the Authorization header:

Authorization: Api-Key {api-key}

Create a key in API key management in the SalaryBox web app. A key gives read access to your company’s data, so keep it on your server and never put it in a browser or mobile app.

curl "https://api.salaryboxapp.com/v2/customer/v1/staff/" \
-H "Authorization: Api-Key {api-key}"

Your subscription

Your company needs an active SalaryBox subscription. Without one, every endpoint returns 403 with "message": "Your subscription is not active.". Some endpoints also need Payroll Pro or an add-on; see Errors.

Authentication errors

StatusBodyCause
401{"detail": "Authentication credentials were not provided."}The Authorization header is missing or not in the form Api-Key {api-key}.
401{"detail": "Invalid Api-Key"}The key is not valid, for example because it was deleted.
403"Your subscription is not active."The company’s subscription has expired.