Fetch open shifts and process employee shift-swap requests via the When I Work API

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

Steps

  1. Authenticate using the When I Work login service (POST to https://api.login.wheniwork.com/login) and capture the W-Token.
  2. GET /2/shifts?open=true to retrieve all open (unassigned) shifts available for pickup in the account.
  3. When an employee submits a swap request, POST to /2/requests with a type of swap or drop, referencing the source shift ID and the target shift or user.
  4. Poll GET /2/requests or listen via webhook for request status updates; approved requests transition to an approved status.
  5. On approval, the schedule is updated automatically within When I Work; retrieve the updated shift records to confirm assignment changes.
  6. Propagate schedule changes to any downstream time-and-attendance or payroll system using the updated shift data.

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
Build a shift-swap request and approval workflow using the 7shifts API
developers.7shifts.com · 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