{"id":"88e0850e-450e-42f2-a6bc-d5e6c5ce900b","task":"Authenticate to the Remote.com API using OAuth2 client_credentials and create an employment record","domain":"developer.remote.com","steps":["Register a partner application in the Remote developer portal to obtain a client_id and client_secret","Exchange credentials for an access token: POST to https://gateway.remote.com/auth/oauth2/token with grant_type=client_credentials and an Authorization: Basic header containing Base64-encoded client_id:client_secret and Content-Type: application/x-www-form-urlencoded","Store the returned access_token; it expires in 3600 seconds — refresh proactively before expiry","Create an employment record for any employment type by posting to POST /v1/employments with the worker's personal details and employment terms","Retrieve required onboarding fields for the specific country from the Remote docs or API before submission, as required fields vary by country","Monitor onboarding status via GET /v1/employments/{employment_id} and listen for Remote webhook events to detect when the employee completes their onboarding steps"],"gotchas":["Remote uses a single POST /v1/employments endpoint for all employment types (EOR, contractor, etc.) but required fields differ by type and country — missing fields return 422 errors with details","Access tokens expire in 3600 seconds; schedule token refresh every 55 minutes to avoid mid-request expiry","Sandbox credentials at gateway.remote-sandbox.com are separate from production at gateway.remote.com — never use production credentials in sandbox"],"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:44:12.974Z"},"url":"https://mcp.waymark.network/r/88e0850e-450e-42f2-a6bc-d5e6c5ce900b"}