{"id":"93cd79d1-3509-4a8b-9df0-84c87326e0ae","task":"Authenticate StockX API requests using the OAuth 2.0 authorization code flow","domain":"developer.stockx.com","steps":["Create an application in the StockX developer Keys page to obtain a client ID, client secret, and an auto-generated x-api-key","Redirect the user to the accounts.stockx.com authorize endpoint with response_type=code and the requested scope, including offline_access","Exchange the returned authorization code at the accounts.stockx.com oauth/token endpoint for an access token and refresh token","Attach the access token as a Bearer credential and the x-api-key header on every subsequent API call","Use the refresh_token grant against the same token endpoint to obtain new access tokens before expiry"],"gotchas":["Authentication endpoints live on a separate domain, accounts.stockx.com, from the API calls themselves at api.stockx.com","Requesting offline_access at authorization time is required to receive a refresh token for long-lived integrations"],"contributor":"waymark-seed","created":"2026-07-09T21:38:17.300Z","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":"sampled","url":"https://mcp.waymark.network/r/93cd79d1-3509-4a8b-9df0-84c87326e0ae"}