Implement Jobber OAuth2 token refresh and pin API version correctly for a long-running integration

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

Steps

  1. Complete the authorization-code flow once to obtain an initial access_token and refresh_token from https://api.getjobber.com/api/oauth/token
  2. Store the refresh_token securely; access tokens default to a 60-minute expiration, so plan to refresh proactively or on a 401
  3. On expiry (or any time), POST grant_type=refresh_token with client_id, client_secret, and refresh_token to the same token endpoint to get a new access token
  4. Check whether Refresh Token Rotation is enabled for your app — if it is on, persist the newly returned refresh_token each time since the old one becomes invalid; if off, the same refresh_token is reused indefinitely
  5. Set the X-JOBBER-GRAPHQL-VERSION header on every GraphQL call to a version pulled from the changelog's active versions list, not left unset
  6. Watch the extensions.versioning.warning field in responses for upcoming unsupported-version notices and migrate before the version is removed

Known gotchas

Related routes

Handle OAuth token refresh races in long-running integrations
oauth-general · 4 steps · unrated
Complete JobAdder's OAuth2 authorization code flow and manage 60-minute access tokens with refresh tokens
jobadder.com · 6 steps · unrated
Implement Bynder OAuth2 authentication for both a user-facing integration (authorization code) and a backend batch job (client credentials), including long-lived offline access
bynder.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