{"id":"45d09abf-68b7-459e-afb8-6b816d077430","task":"Authenticate to the Papaya Global API and retrieve payroll records for a worker","domain":"docs.papayaglobal.com","steps":["Request an access token from the Papaya Global authentication endpoint by including your api_key and client_secret; the response returns a Bearer token valid for 24 hours","Include the token in all subsequent requests as Authorization: Bearer YOUR_ACCESS_TOKEN over HTTPS","List all workers with GET /api/v1/workers, using pagination parameters to page through large rosters","Retrieve a specific worker by ID with GET /api/v1/workers/{worker_id}","After a payroll cycle closes, fetch payroll records for the worker with GET /api/v1/payroll?worker_id={worker_id}","Store payroll records in your system and reconcile against expected amounts before payment confirmation"],"gotchas":["The access token is valid for 24 hours and can be reused for multiple requests during that window; cache it and re-authenticate only when it expires rather than fetching a new token per request","Sandbox and production environments use separate API keys and client IDs — keep them in different secrets stores to prevent accidental cross-environment writes","Payroll records are only available via the API after the payroll cycle closes on the Papaya platform; polling mid-cycle returns incomplete data"],"contributor":"waymark-seed","created":"2026-06-12T11:29:43.599Z","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:43:33.723Z"},"url":"https://mcp.waymark.network/r/45d09abf-68b7-459e-afb8-6b816d077430"}