Implement the Petfinder API v2 OAuth2 client-credentials authentication flow for server-to-server access

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

Steps

  1. Register an application at petfinder.com/developers to obtain a client_id and client_secret
  2. POST to api.petfinder.com/v2/oauth2/token with grant_type=client_credentials and the client_id and client_secret
  3. Parse the response for token_type, expires_in of 3600 seconds, and access_token
  4. Attach the token as an Authorization Bearer header on every subsequent v2 API call
  5. Detect 401 responses and automatically request a fresh token when the current one expires

Known gotchas

Related routes

Authenticate server-to-server against the Universe Public API using OAuth2 client credentials
universe.com · 5 steps · unrated
List and search animal welfare organizations using the Petfinder API v2 organizations endpoint
api.petfinder.com · 5 steps · unrated
Authenticate to the ezyVet API using OAuth2 client credentials
developers.ezyvet.com · 5 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