get https://sandbox.onebrick.io/v2/payments/auth/token
The authentication token endpoint lets developers obtain a short-lived, single-use public token to redirect users to the Brick interface and then retrieve their data. Each access token is valid for 5 minutes and can be used only once.
Request Parameter
Key Parameter | Data Type | Description |
---|---|---|
username | String | Your Client ID (You can collect this from Brick dashboard) |
password | String | Your Client Secret (You can collect this from Brick dashboard) |
Response Parameter
Key Parameters | Data Type | Description |
---|---|---|
message | String | Contain info that access token is valid for 5 minutes and can use one time only. |
accessToken | String | This is unique token for clients, also called as public access token, It should be use this token for further APIs. |
issuedAt | String | Token generation time. |
expiresAt | String | Expiry of token, expiry for token is 5 minutes and can only be used 1 time. |