Developers

Payroll tax API authentication

One header, two kinds of key.

The API authenticates with a bearer key sent in the Authorization header. There is no OAuth dance and no signature to compute. What matters is which kind of key you hold and where you keep it.

The header

Authorization: Bearer sk_test_…

Two kinds of key

KeyUse
sk_test_…Development and CI. Same engine and data as live. Never billed. 30 requests a minute, 500 a day.
sk_live_…Production. Billed at $0.08 per paycheck calculation after the 14-day trial. Needs a payment method on file.

Keeping a key safe

What the 401s mean

CodeMeaning
missing_keyNo Authorization: Bearer header was sent.
invalid_keyThe key is not recognised or was revoked.
expired_keyThe key has passed its expiry. Issue a new one.

A 402 with payment_method_required is different: the key is valid, but a live key needs a payment method or an active subscription. Check which key you are using with GET /v1/me, which returns the key's details and recent usage.

Keep reading

Payroll tax API test keys · Payroll tax API error codes · REST API for payroll taxes · Payroll tax API rate limits · All guides

Questions

How do I authenticate to the payroll tax API?

Send your key as a bearer token in the Authorization header: the word Bearer, a space, then the key. Test keys start sk_test_ and live keys start sk_live_.

Can I put the key in front-end code?

No. Anyone who opens the page could copy it. Call the API from your server.

Start the 14-day trial Read the docs →

14-day free trial, then $0.08 per paycheck calculation. Omnia Express calculates; it does not file, deposit tax, or give tax advice. Disclaimer.