> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brickken.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dapp API

> API-key authenticated Brickken API for tokenization, STOs, security-token operations, and reads.

![Hero Light](https://mintcdn.com/brickken/UYpLPKOSKNI6CnjX/images/hero-light.png?fit=max\&auto=format\&n=UYpLPKOSKNI6CnjX\&q=85\&s=81659380e5c01ec57ea5a664f8d129cc)

## Overview

The Brickken Dapp API is the API-key authenticated surface for tokenized asset workflows. Use it when your integration owns a Brickken API key and wants to prepare transactions for a wallet to sign, submit signed transactions, or read tokenization and STO data.

Use the [Agentic API](https://docs.brickken.com/api-reference/endpoint/agentic-methods-x402.md), [MCP](https://docs.brickken.com/mcp/introduction.md), or [CLI](https://docs.brickken.com/cli/introduction.md) for private-key based agentic flows.

## Base URLs

| Environment | API base URL | App URL |
| - | - | - |
| Sandbox | `https://api.sandbox.brickken.com` | `https://dapp.sandbox.brickken.com` |
| Production | `https://api.brickken.com` | `https://dapp.brickken.com` |

> [!NOTE]
>
> Sandbox and production are separate deployments with separate databases. An API key issued for one does not work on the other.

## Authentication

Send your API key in every request:

```http theme={null}
x-api-key: YOUR_BRICKKEN_API_KEY
```

Two prerequisites before your first write:

1. **You need a key.** [Request one](https://docs.brickken.com/get-started/request-api-key) with the email tied to your Brickken account.
2. **Your `signerAddress` must be whitelisted by Brickken.** A prepare call will not accept an unknown signer. Ask for the whitelist in the same request as the key.

Your key is also scoped: it can only act on token symbols it tokenized, and each write method has its own credit balance. See [Authentication](https://docs.brickken.com/get-started/authentication) for the credential matrix, plans, limits, and error codes.

> [card] [Postman Collection](https://docs.brickken.com/api-reference/postman.md)
>
> Ready-to-run example requests for every endpoint.

> [card] [Drive this API from an AI agent](https://docs.brickken.com/mcp/introduction.md)
>
> The MCP server exposes every endpoint below as a tool, using the same API key.

## Transaction Flow

Most write operations use the same three-step flow:

1. **Prepare** unsigned transactions with `POST /prepare-transactions`.
2. **Sign** every returned transaction with the wallet matching `signerAddress`.
3. **Send** the signed payloads with `POST /send-transactions`, then poll `GET /get-transaction-status`.

```bash theme={null}
curl --request POST 'https://api.sandbox.brickken.com/prepare-transactions' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_BRICKKEN_API_KEY' \
  --data '{
    "chainId": "11155111",
    "method": "newTokenization",
    "tokenizerEmail": "issuer@example.com",
    "signerAddress": "0xYourWallet",
    "name": "Example Asset",
    "tokenSymbol": "EXMPL",
    "tokenType": "RWA_TOKEN",
    "supplyCap": "1000000",
    "url": "https://example.com/token-docs"
  }'
```

The response includes `txId` and `transactions`. Sign the transaction or transactions locally, then send them:

```bash theme={null}
curl --request POST 'https://api.sandbox.brickken.com/send-transactions' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_BRICKKEN_API_KEY' \
  --data '{
    "txId": "0xPreparedTransactionId",
    "signedTransactions": ["0xSignedRawTransaction"]
  }'
```

## Write Endpoints

| Endpoint | Purpose |
| - | - |
| `POST /prepare-transactions` | Prepare any supported transaction method by passing `method` in the JSON body. |
| `POST /send-transactions` | Submit signed transactions returned by prepare. |
| `PATCH /patch-token-docs` | Update token documentation and branding files. |

## Supported Methods

| Area | `method` values |
| - | - |
| Tokenization | `newTokenization`, `mintToken`, `whitelist`, `burnToken`, `transferFrom`, `transferTo`, `approve`, `dividendDistribution` |
| STOs | `newSto`, `newInvest`, `claimTokens`, `closeOffer` |

## Read Endpoints

| Endpoint | Purpose |
| - | - |
| `GET /get-network-info` | Read chain metadata and supported network configuration. |
| [`GET /get-token-info`](https://docs.brickken.com/api-reference/endpoint/get-token-info) | Read one asset record by symbol, or list the symbols available to the API key. |
| [`GET /get-tokenizer-info`](https://docs.brickken.com/api-reference/endpoint/get-tokenizer-info) | Read the tokenizer account and the token, payment-token, and escrow contract addresses. |
| [`GET /get-stos`](https://docs.brickken.com/api-reference/endpoint/get-stos) | List STOs for a token. |
| [`GET /get-sto-by-id`](https://docs.brickken.com/api-reference/endpoint/get-sto-by-id) | Read one STO by ID. |
| `GET /get-investments-by-sto-id` | List investments for one STO. |
| `GET /get-investor-info` | Read investor status by token and email. |
| `GET /get-allowance` | Read allowance between owner and spender. |
| `GET /get-balance-whitelist` | Read investor balance and whitelist status. |
| `GET /get-whitelist-status` | Check whether an investor wallet is whitelisted. |
| `GET /get-sto-balance` | Read STO balance and status. |
| `GET /get-dividend-distribution` | Read dividend distribution information. |
| `GET /get-transaction-status` | Poll a submitted blockchain transaction. |

```bash theme={null}
curl --request GET \
  'https://api.sandbox.brickken.com/get-network-info?chainId=11155111' \
  --header 'x-api-key: YOUR_BRICKKEN_API_KEY'
```

## Networks

| Network | Decimal | Hex |
| - | - | - |
| Ethereum mainnet | `1` | `0x1` |
| Base mainnet | `8453` | `0x2105` |
| BNB Smart Chain | `56` | `0x38` |
| Polygon mainnet | `137` | `0x89` |
| Sepolia testnet | `11155111` | `0xaa36a7` |
| Polygon Amoy testnet | `80002` | `0x13882` |

Pass `chainId` as decimal or hex. Client tooling normalizes common values.

> [!WARNING]
>
> Prepared transactions are on-chain actions. Verify `chainId`, `signerAddress`, token symbol or token address, and all recipient addresses before signing.

## Guides

> [card] [Tokenize an asset and run an STO](https://docs.brickken.com/api-reference/guides/tokenize-and-run-an-sto.md)
>
> The full lifecycle, from tokenization to dividends.

> [card] [Browser wallets](https://docs.brickken.com/api-reference/guides/browser-wallets.md)
>
> Send a prepared transaction from MetaMask or another injected wallet.

> [card] [Troubleshooting](https://docs.brickken.com/api-reference/guides/troubleshooting.md)
>
> Decode a failed call, from validation errors to raw revert data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.