Example Token Request
Example Token Request – Generic Token (no userid)
userid)curl -X POST "https://api.AIRisk.example.com/api/oauth2/Token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "client_id=YOUR_client_id&client_secret=YOUR_client_secret&redirect_uri=https%3A%2F%2Flocalhost%2Fcallback&code=AUTH_CODE_HERE"import requests token_url = "https://api.AIRisk.example.com/api/oauth2/Token" data = { "client_id": "YOUR_client_id", "client_secret": "YOUR_client_secret", "redirect_uri": "https://localhost/callback", "code": "AUTH_CODE_HERE" } response = requests.post(token_url, json=data) token_response = response.json() print(token_response.get("access_token"))
Example Token Request – User-Specific Token (with userid)
userid)Last updated