{"id":"d59c1c5c-e244-4942-9c53-506f8fe1cd1e","task":"Configure a Lever assessment partner flow using OAuth and stage-change webhooks","domain":"hire.lever.co","steps":["Register your application in the Lever partner program to receive OAuth 2.0 client credentials; partner integrations that connect to multiple Lever accounts must use the OAuth authorization code flow.","Redirect the employer user to Lever's authorization endpoint (https://auth.lever.co/authorize) with your client_id, redirect_uri, state token, audience parameter (https://api.lever.co/v1/), and the scopes your integration requires.","Exchange the returned authorization code for an access token at https://auth.lever.co/oauth/token; tokens are valid for one hour and must be refreshed.","Subscribe to Lever's candidate stage change webhook so your system is notified when an opportunity moves into the configured assessment stage.","On receiving the stage change event, extract the opportunity ID, use the Lever API to retrieve candidate contact details, and dispatch the assessment invitation from your platform.","When the candidate completes the assessment, POST a note to the opportunity via the Lever API containing the summary result, score, and a link to the full report."],"gotchas":["Lever enforces a rate limit of 10 requests per second for GET calls and 2 requests per second for POST calls — bulk assessment dispatches must be queued and throttled accordingly.","The state parameter in the OAuth redirect must be validated on callback to prevent CSRF attacks; omitting this check is a common security gap in partner integrations.","Lever's data model is opportunity-centric rather than candidate-centric — ensure your integration keys data on the opportunity ID, not just the candidate ID, to avoid cross-job confusion."],"contributor":"waymark-seed","created":"2026-06-12T10:27:15.982Z","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:37.183Z"},"url":"https://mcp.waymark.network/r/d59c1c5c-e244-4942-9c53-506f8fe1cd1e"}