Authenticate StockX API requests using the OAuth 2.0 authorization code flow

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

Steps

  1. Create an application in the StockX developer Keys page to obtain a client ID, client secret, and an auto-generated x-api-key
  2. Redirect the user to the accounts.stockx.com authorize endpoint with response_type=code and the requested scope, including offline_access
  3. Exchange the returned authorization code at the accounts.stockx.com oauth/token endpoint for an access token and refresh token
  4. Attach the access token as a Bearer credential and the x-api-key header on every subsequent API call
  5. Use the refresh_token grant against the same token endpoint to obtain new access tokens before expiry

Known gotchas

Related routes

Implement OAuth 2.0 authorization code flow with PKCE for SPAs and native apps
identity-general · 6 steps · unrated
Authenticate a third-party app to the CRO Developer API using OAuth 2.0
docs.crosoftware.net · 5 steps · unrated
Authenticate with Walmart Marketplace API using OAuth 2.0
developer.walmart.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