Brick API Documentation
Brick API

Authentication

Server

Create and manage the access token required by Brick API requests. Start here before testing payment, disbursement, QRIS, Virtual Account, Checkout Page, OCR, or account validation endpoints in sandbox and production.


Access Token

GET
https://sandbox.onebrick.io
/v2/payments/auth/token
basic

Generate the short-lived public access token used by most Brick API requests. Authenticate with your Brick Client ID and Client Secret, then pass the returned token in the publicAccessToken header for payment, payout, QRIS, Virtual Account, Checkout, OCR, and validation calls. Refresh the token before it expires and never expose long-lived client credentials in frontend code.

Access Token › Responses

200

status
​integer
Default: 0
error
​
​object
​object