Use your Sandbox API keys viz. a Client ID & Client Key with the generate public token API to get a public access token. This token or what we call a public access token can be used to access the other APIs.
curl --location --request GET 'https://sandbox.boiva.id/b2b/v0/token' \
--header 'X-Client-Id: {client-id}' \
--header 'X-Client-Key: {client-key}'
Key Parameter | Data Type | Description |
---|---|---|
X-Client-Id | String | Username for authorization to generate public token (Client ID that is obtained from BOIVA team) |
X-Client-Key | String | Password for authorization to generate public token (Client Key that is obtained from BOIVA team) |
The Above API gives you a public access token that is valid for 1 hour and which can be used to access the other APIs.
{
"token": "{token}",
"scopes": [
"identity_verification"
],
"duration": 3600000
}
Key Parameter | Data Type | Description |
---|---|---|
token | String | Public Access Token that can be used as a header in all other APIs This will expire in 1 hour and client should re-generate the token |
scopes | String | The scope of which API that this token will be eligible to use |
duration | Integer | Duration of the expiry of the token itself, usually in 1 hour |