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

# API Reference

> Every programmatic surface ChainStream ships — REST, WebSocket, Kafka topics, CLI commands and MCP tools.

This section is the authoritative list of endpoints, tools and channels. If you're new here, start with the [Quickstart](/en/docs/quickstart) or the [Access Methods overview](/en/docs/access-methods/overview); come back when you need exact field names, rate limits or schemas.

## Surfaces

<CardGroup cols={2}>
  <Card title="REST — Data" icon="database" href="/en/api-reference/endpoint/data/token/v2/token-search-get">
    All data endpoints: tokens, trades, wallets, pools, smart money, search.
    OpenAPI-generated, with request/response examples per language.
  </Card>

  <Card title="REST — DeFi" icon="right-left" href="/en/api-reference/endpoint/defi/dex/v2/dex-chain-quote-get">
    DEX aggregator endpoints: quote, route, swap, create token, transaction send.
  </Card>

  <Card title="WebSocket" icon="bolt" href="/en/api-reference/endpoint/websocket/api">
    Real-time subscription channels for trades, prices, pools and smart-money flow.
  </Card>

  <Card title="Kafka Topics" icon="tower-broadcast" href="/en/api-reference/kafka-topics/evm">
    Per-chain topic catalog with Protobuf schemas and example consumer snippets.
  </Card>

  <Card title="CLI Commands" icon="terminal" href="/en/api-reference/cli-commands/overview">
    Full `chainstream` CLI reference — every command, flag and exit code.
  </Card>

  <Card title="MCP Tools" icon="robot" href="/en/api-reference/mcp-tools/overview">
    Full list of tools the ChainStream MCP Server exposes to AI agents.
  </Card>
</CardGroup>

## Authentication

All REST and WebSocket requests require an API key, OAuth token, wallet-auth bearer or [x402 / MPP](/en/docs/platform/billing-payments/x402-payments) payment header. See [Authentication](/en/api-reference/authentication/authenticate) for the full matrix.

## Conventions

* **Base URLs** — data and DeFi share `https://api.chainstream.io`; see each endpoint for path prefix.
* **Rate limits** — per plan and per surface; response headers expose remaining budget. Full table in [Platform / Rate limits](/en/docs/platform/billing-payments/plans-and-units).
* **Errors** — consistent JSON error envelope across all surfaces; see [Error handling](/en/docs/reference/error-codes).
* **Versioning** — non-breaking changes roll out continuously; breaking changes are announced in the [Changelog](/en/changelog/index) with a deprecation window.

## Next

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/en/docs/quickstart">
    Make your first authenticated call.
  </Card>

  <Card title="SDKs" icon="box" href="/en/sdks/overview">
    Typed wrappers for TypeScript, Python, Go and Rust.
  </Card>
</CardGroup>
