πOAuth Token
OAuth Token Usage
All Valify Service APIs use OAuth 2.0 as the authentication mechanism.
An access token is valid for 10 minutes from the time it is generated.
Each token can be used for up to 3 API calls within this 10-minute window.
A new token is only required if either:
The token has been used 3 times, or
The 10-minute validity period has expired.
β οΈ Avoid requesting a new token for every API call. Instead, reuse the same token until it reaches 3 uses or expires after 10 minutes.
OAuth Token
POST
https://valifystage.com/api/o/token/
Headers
Name
Type
Description
Content-Type
string
application/x-www-form-urlencoded
Request Body
Name
Type
Description
username
string
password
string
client_id
string
client_secret
string
grant_type
string
password
{
'access_token': '********************************',
'expires_in': 600, #10 Minutes
'token_type': 'Bearer',
'scope': '<given_score_permission>',
'refresh_token': '********************************'
}
import requests
r = requests.post("https://valifystage.com/api/o/token/",
data={
'username': '<username>', # Place your data here
'password': '<password>',
'client_id': '<client id>',
'client_secret': '<client secret>',
'grant_type': 'password'
}
)
print(r.json())
Postman Package
Last updated