Authenticate to the Paylocity API using OAuth 2.0 client credentials and retrieve employee records for a company via the Core HR API.

domain: developer.paylocity.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Get approved for sandbox/API access through Paylocity (as an existing customer or via partner sponsorship) and receive an OAuth client ID/secret plus a company ID.
  2. POST to the IdentityServer token endpoint (https://api.paylocity.com/IdentityServer/connect/token) using the OAuth 2.0 client credentials grant and the appropriate scope, sending the client ID and secret.
  3. Extract the returned access token (Bearer, expires in 3600 seconds) from the JSON response.
  4. Call GET /api/v2/companies/{companyId}/employees with the token in the Authorization header to list employees for that company (paginated).
  5. Call GET /api/v2/companies/{companyId}/employees/{employeeId} to fetch a single employee's full record.
  6. Re-run the client-credentials call to get a fresh token once the current one expires — there is no refresh-token grant.

Known gotchas

Related routes

Access company and employee data from the Paylocity API
developer.paylocity.com · 5 steps · unrated
Authenticate to the Paychex API with client key/secret credentials and retrieve worker records for a company via the Workers resource.
developer.paychex.com · 6 steps · unrated
Authenticate to the Personio API v2 with client credentials and retrieve a paginated list of employee (person) records.
developer.personio.de · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans