> ## 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.

# Choose your surface

> Five ways to call the same Brickken backend — and which one fits what you are building.

The REST API, the SDK, the CLI, the MCP server, and the Skill all talk to the same backend at `api.brickken.com`. They differ in who is driving and which credential they carry.

## Start from what you already have

| You have | Use | Because |
| - | - | - |
| An API key and a TypeScript codebase | **SDK** | Typed client for the whole platform, running in your process |
| An API key and any other stack | **REST API** | Plain HTTP reaches everything |
| An API key and a terminal | **CLI** | Dapp transaction methods and JSON endpoints from your terminal |
| A funded wallet and no API key | **SDK**, **Agentic API**, or **CLI** | Pay per call with x402; no account needed |
| An MCP-capable AI agent | **MCP** | One hosted endpoint, 62 tools, credentials set per session |
| A terminal and an agentic workflow | **CLI** | `npm i -g brickken-cli`, then one command per operation |
| An AI coding agent, any of the above | **Skill** | Teaches the agent when to use which surface |

## The five surfaces

> [card] [REST API](https://docs.brickken.com/api-reference/introduction.md)
>
> Plain HTTP. Everything the platform can do. API key for the Dapp API, x402 or API key for agentic methods.

> [card] [SDK](https://docs.brickken.com/sdk/introduction.md)
>
> `brickken-sdk` on npm. Typed TypeScript client for the Dapp API, the Agentic API, and RAMS, in your own process.

> [card] [MCP server](https://docs.brickken.com/mcp/introduction.md)
>
> Hosted at `https://mcp.brickken.com/mcp`. The client to use when an **AI agent** should drive the full Dapp API with just an API key.

> [card] [CLI](https://docs.brickken.com/cli/introduction.md)
>
> `brickken-cli` on npm. Dapp API, KYC, the Sandbox/Forge BKN faucet, agentic, and RAMS workflows from your terminal.

> [card] [Skill](https://docs.brickken.com/skill/introduction.md)
>
> Brickken knowledge for AI coding agents, with or without the CLI installed.

## What each surface can reach

| | REST | SDK | MCP | CLI | Skill |
| - | :-: | :-: | :-: | :-: | :-: |
| Dapp API writes | Yes | Yes | Yes | Yes | Guides the agent |
| Dapp API reads | Yes | Yes | Yes | Yes | Guides the agent |
| KYC link creation | Yes | Yes | Yes | Yes | Guides the agent |
| BKN faucet (Sandbox/Forge) | Yes | Yes | Yes | Yes | Guides the agent |
| Agent getters | Yes | Yes | Yes | Yes | Guides the agent |
| Agentic writes (ERC-8004, agent tokens) | Yes | Yes | Yes | Yes | Guides the agent |
| RAMS writes | Yes | Yes | Yes | Yes | Guides the agent |
| RAMS reads | Yes | Yes | Yes | Yes | Guides the agent |
| Accepts an API key | Yes | Yes | Yes | Dapp API, KYC, faucet, and reads | — |
| Pays with x402 | Yes | Yes | Yes | Yes | — |
| Where it runs | Your code | Your code | Hosted by Brickken | Your machine | Your agent |

> [!NOTE]
>
> The CLI reaches the Dapp API with `BRICKKEN_API_KEY`: use `brickken tx prepare --method <method>` for tokenization, STO, and security-token transaction methods, and `brickken dapp get` for Dapp reads. Multipart file uploads such as `/patch-token-docs` remain REST-only.
>
> For Dapp API work, use the **SDK** if you write TypeScript, **MCP** if an agent is driving, or plain **HTTP** otherwise.

## SDK or MCP for the Dapp API?

Both reach the full Dapp API with nothing but an API key. The difference is who is holding the credential:

* **SDK** — your code holds the key, and every call is typed and testable. Illegal credential combinations fail locally, before a request leaves your process.
* **MCP** — a hosted endpoint holds nothing; each session supplies its own credentials, and an AI agent picks the tools. Right when the driver is an agent rather than a program you wrote.

## Same backend, same rules

Whichever surface you pick, the mechanics are identical: writes are **prepared** into unsigned transactions, **signed**, then **sent**; preparing a relayed agentic operation is free and only the send costs anything; and your private key never leaves your machine.

The surface changes the ergonomics, not the semantics — you can prepare with the CLI and send with curl.

> [card] [Authentication](https://docs.brickken.com/get-started/authentication)
>
> The credential matrix in full.

> [card] [Quickstart](https://docs.brickken.com/get-started/quickstart.md)
>
> A first call on each surface.


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