# Brick API

**Canonical:** https://apis.io/apis/onebrick/onebrick-api/  
**Provider:** Brick — https://apis.io/providers/onebrick/  
**Base URL:** https://sandbox.onebrick.io  
**Documentation:** https://docs.onebrick.io/th/api

Brick API is published by [Brick](https://apis.io/providers/onebrick/) on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

Brick API as documented publicly: 6 operations. Contract generated from the documentation by API Evangelist (2026-10-21); not the provider's own document.

## Operations (6)

| Method | Path | Summary |
|---|---|---|
| GET | `/v2/payments/auth/token` | GET /v2/payments/auth/token |
| POST | `/v2/payments/gs/acceptance/ewallet` | POST /v2/payments/gs/acceptance/ewallet |
| GET | `/v2/payments/gs/balance` | GET /v2/payments/gs/balance |
| GET | `/v2/payments/gs/get-top-up-history` | Get Topup History |
| GET | `/v2/payments/gs/ledger` | GET /v2/payments/gs/ledger |
| GET | `/v2/payments/gs/top-up/bank/list` | GET /v2/payments/gs/top-up/bank/list |

## Machine-readable artifacts (8)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/openapi/_ae-authored/onebrick-openapi-generated.yml
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/json-schema/onebrick-get-v2-payments-gs-get-top-up-history-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/json-schema/onebrick-get-v2-payments-gs-ledger-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/json-schema/onebrick-get-v2-payments-gs-balance-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/json-schema/onebrick-get-v2-payments-gs-top-up-bank-list-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/json-schema/onebrick-get-v2-payments-auth-token-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/json-schema/onebrick-post-v2-payments-gs-acceptance-ewallet-request-schema.json
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/onebrick/refs/heads/main/apis.yml

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/onebrick/onebrick-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/onebrick/.
