Exchange Code for Tokens
Server-to-server call. Exchange the authorization code for an access_token. Use the access_token as a Bearer token in the Authorization header when calling API endpoints.
/api/oauth/tokenAuthentication
Authorization: BearerUses client_id + client_secret in the request body (not headers).
Query Parameters
grant_typestringMust be 'authorization_code'
authorization_codecodestringThe authorization code from the callback redirect
client_idstringFrom Partner Account → Manage Apps → View Credentials
client_secretstringFrom Partner Account → Manage Apps → View Credentials
redirect_uristringMust match the URI used in the authorize step
Responses
application/jsonaccess_tokenstringtoken_typestringscopestringComplete the authorization flow
Use this endpoint after the user returns to your registered callback with an authorization code. Send the exchange from your backend to login.pandaidx.com. The request body contains the code, grant type and your application's client credentials. If you include redirect_uri, use the same value as in the authorization step. Keep the authorization callback and the token exchange associated with the same user session.
Store and use the token safely
Keep client_secret and returned tokens on your server. Do not embed them in website JavaScript, public repositories, analytics events or browser URLs. Once the exchange succeeds, send the access token in the Authorization: Bearer header for product API requests. The authorization URL, token endpoint and product API have different roles; use the base URL shown for each request.
Verify the connection
Call Get Current User with the returned access token before fetching listings or contacts. Review the application and granted scopes in that response so your integration operates on the intended website. If the exchange fails, inspect the HTTP response and validate the client credentials, callback URI and authorization code before retrying. Redact secrets when collecting diagnostic logs.
OAuth authorization · Check the connected account · API setup guide