Brick API Documentation
API Setup

Generate Public Access Token

Use this endpoint for general Brick APIs that require publicAccessToken. This token is separate from the SNAP B2B access token used by QR Code SNAP APIs.

Request Parameters

Key ParametersData TypeDescription
usernameStringYour Client ID (You can collect this from Brick dashboard)
passwordStringYour Client Secret (You can collect this from Brick dashboard)

Response Parameters

Key ParametersData TypeDescription
messageStringContain info that access token is valid for 5 minutes and can use one time only.
accessTokenStringThis is unique token for clients, also called as public access token, It should be use this token for further APIs.
issuedAtStringToken generation time.
expiresAtStringExpiry of token, expiry for token is 5 minutes and can only be used 1 time.

Response Code

We use the following HTTP status code in the response depending on the success or failure:

Response CodeDescription
200The content was fetched successfully in the response
400Request returned an error
401Brick credentials are not valid
404Requested resource not found
500Internal Server Error
Last modified on