Authenticate to the When I Work API and obtain a session token

domain: hr-payroll · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Request API access, which requires admin-level access on the When I Work account, to receive a private developer key
  2. POST the developer key together with a When I Work user's username and password to the login endpoint
  3. Read the token off the returned person object
  4. Include the token on subsequent requests via the W-Token or Authorization header (or as a cookie/query-string parameter, per the docs)
  5. Re-authenticate to obtain a new token when the current one expires or is rejected

Known gotchas

Related routes

Authenticate to the When I Work API and fetch shift data
dev.wheniwork.com · 5 steps · unrated
Authenticate to the When I Work API and create shifts via the REST API
apidocs.wheniwork.com · 6 steps · unrated
authenticate to the tessitura rest api and establish a session
tessitura.com · 5 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