Authentication
Pre-Requisites
Method 1: Generate token using Password Grant type
curl --location 'https://gw.idmerit.com/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic Base64(consumer-key:consumer-secret)' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username={{username}}' \
--data-urlencode 'password={{password}}'{
"access_token": "ac3*****-****-****-****-*********5da",
"refresh_token": "f5f*****-****-****-****-*********a3e",
"scope": "default",
"token_type": "Bearer",
"expires_in": 3600
}Method 2: Generate token using Client Credentials
Method 3: Generate token via Developer Portal



Last updated