Generate a token (Public access token)

Use your Sandbox API keys viz. a ClientID & ClientSecret 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 launch the Brick widget and access the other APIs.

curl -u Client ID:Client Secret https://sandbox.onebrick.io/v1/auth/token

The Above API gives you a public access token that is valid forever and which can be used to launch the Brick Widget and access the institution list.

{
    "status": 200,
    "message": "OK",
    "data": {
        "access_token": "public-sandbox-b70bcf83-87a1-4f2c-8f2a-16d48021413a"
    }
}