Build a shift-swap request and approval workflow using the 7shifts API

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

Steps

  1. Authenticate with 7shifts using OAuth 2.0, capturing the access token and x-company-guid for the restaurant company.
  2. When an employee requests a swap, POST to the shift trade or swap endpoint in the 7shifts API (see the API reference for the current endpoint path) with the shift IDs of both employees and the requesting employee's user ID.
  3. Retrieve pending swap requests via GET on the swap/trade resource filtered by status to surface requests requiring manager review.
  4. PUT or PATCH the swap request object with status: approved or status: denied and include a manager user ID to record the approving manager.
  5. On approval, the 7shifts system updates the schedule automatically; retrieve both affected shift records to confirm the employee assignments have been exchanged.
  6. Trigger downstream notifications (e.g., via your own messaging system) to inform both employees and their manager of the confirmed swap outcome.

Known gotchas

Related routes

Authenticate to the 7shifts API using OAuth 2.0 and retrieve shift schedules for a restaurant location
developers.7shifts.com · 6 steps · unrated
Create an unscheduled shift in 7shifts via the API to cover last-minute catering event staffing needs
developers.7shifts.com · 5 steps · unrated
Fetch open shifts and process employee shift-swap requests via the When I Work API
apidocs.wheniwork.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