API Reference

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 ParameterData TypeDescription
X-Client-IdStringUsername for authorization to generate public token (Client ID that is obtained from BOIVA team)
X-Client-KeyStringPassword 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 ParameterData TypeDescription
tokenStringPublic 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
scopesStringThe scope of which API that this token will be eligible to use
durationIntegerDuration of the expiry of the token itself, usually in 1 hour