Prodoscore provides two authentication methods for API access: Login API (standard OAuth 2.0) and Browser Token (temporary, for quick testing).
Method 1: Login API (OAuth 2.0)
Overview: The Login API issues short-lived access tokens and long-lived refresh tokens, allowing your application to authenticate programmatically without hardcoding passwords.
Step 1: Get Your Client ID
Your Client ID is your Prodoscore Customer ID. Find it in the portal:
- Click your profile icon (top right) > Account Settings or Customer ID
- Your Customer ID is displayed. This is your client_id for API calls.
Step 2: Request an Access Token
Send a POST request to the token endpoint:
Response:
The access_token is valid for 10 hours (36000 seconds). The refresh_token is valid for 7 days and can be used to get a new access token without re-authentication.
Step 3: Use the Access Token in API Requests
Include the token in the Authorization header of all subsequent API calls:
Step 4: Refresh Your Token (Optional)
Before your access token expires, use the refresh token to get a new one:
Method 2: Browser Token (Temporary)
For quick testing or one-off API calls, you can extract your session token directly from the browser:
1 Log in to the Prodoscore portal
2 Open Developer Tools (F12 on Windows/Linux, Cmd+Option+I on Mac)
3 Click the Network tab
4 Refresh the page (Ctrl+R or Cmd+R)
5 Find any API request (e.g., to api.ag.prodoscore.com) and click it
6 In the Request Headers section, find the Authorization header
7 Copy the full value (e.g., "Bearer eyJhbGci...")
Use this token immediately in your API calls. Browser tokens expire when your session ends (typically when you log out or close the browser).