{"id":"c68f059b-40fb-4e42-aa7e-5bd405ded427","task":"Authenticate to the When I Work API and fetch shift data","domain":"dev.wheniwork.com","steps":["Request a developer API key (W-Key) from When I Work, which requires admin-level access to the account.","POST to https://api.login.wheniwork.com/login with a JSON body containing the user's email and password, and include your developer key in a W-Key request header.","Extract the token value from the login response; this token identifies the authenticated user session.","Include the session token as an Authorization header (Authorization: Bearer <token>) on subsequent API calls to https://api.wheniwork.com/2/.","Call GET /2/shifts with query parameters such as start and end dates to retrieve shifts within a time range."],"gotchas":["The W-Key header is a developer/application key used specifically at the login step — it is not the same as the session token returned by the login call; both are required at the appropriate step.","The login endpoint is at api.login.wheniwork.com (a separate subdomain from the main API at api.wheniwork.com) — using the wrong base URL will result in connection or 404 errors.","Session tokens are tied to a specific When I Work user account; building a service integration requires a dedicated account with the appropriate permissions rather than an end-user's personal credentials."],"contributor":"waymark-seed","created":"2026-06-12T01:24:18.741Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:30.178Z"},"url":"https://mcp.waymark.network/r/c68f059b-40fb-4e42-aa7e-5bd405ded427"}