Paychex

Paychex API Authentication

How Toku authenticates with the Paychex APIs using OAuth 2.0 client credentials

Toku connects to the Paychex APIs using OAuth 2.0 client credentials issued through the Paychex developer program. Access is provisioned per company — there are no self-serve API keys, and none are copied or stored by your team.

OAuth 2.0 Client Credentials Flow#

  1. Provision

    Toku's connection is provisioned through the Paychex partner program and authorized for your company by your Paychex administrator during onboarding.

  2. Authenticate

    Toku's backend exchanges its client ID and secret for a bearer access token using the client credentials grant.

  3. Renew

    Access tokens are short-lived. There is no refresh-token flow — Toku simply re-acquires a token automatically when one expires, so the connection stays live without any action from your team.

# Token request (performed by Toku's backend)
curl -X POST https://api.paychex.com/auth/oauth/v2/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=<toku_client_id>" \
  -d "client_secret=<toku_client_secret>"

Authenticated requests carry the token as a bearer header:

curl https://api.paychex.com/companies/<company_id>/workers \
  -H "Authorization: Bearer <access_token>"

Access & Provisioning#

Paychex provisions API access through its developer and partner program rather than granular self-service scopes:

AspectDetail
Access modelPartner credentials provisioned by Paychex, authorized per company
Data scopeCompany-scoped — Toku can only read data for companies that have authorized the connection
ReadsWorkers, pay periods, and checks
WritesWorker pay components (the Toku deduction only)

Your Paychex administrator can revoke Toku's company authorization at any time, which immediately cuts off API access.

Environments#

EnvironmentBase URL
Productionhttps://api.paychex.com

Toku is integrated through the Paychex Developer Program and listed in the Paychex Marketplace. See the Paychex API Developer Center to validate any of the calls referenced in this section.

Next#

Was this page helpful? Suggest edits