# API v2 overview

> The v2 order API. Deprecated but supported, and what it still does that v3 does not.

> API v2 is deprecated. It stays supported, but new integrations should use the [Khalani API](/) (v3). See [Migrate to v3](/v2/migrate/).

API v2 is the order API that came before v3: `GET /v2/quote`, `POST /v2/build`, and order tracking under `/v2/orders`. Its orders settle through the same contracts as v3's, and v3 reads them too.

## Deprecated, still supported

v2 is maintained but gets no new features. Existing integrations keep working: every endpoint on these pages is live, alongside v3 on the same host, with the same API key. New integrations should use the [Khalani API](/) (v3), starting with its [Quickstart](/quickstart/).

[Migrate to v3](/v2/migrate/) maps every v2 endpoint and field to v3.

## What v2 does that v3 does not

- **Public order reads.** `GET /v2/orders/{orderId}` needs no key, so a browser can poll it directly. Every v3 route needs your key.
- **A health route.** `GET /v2/health` reports the order pipeline. v3 has none. Use `GET /v3/catalog` as your readiness check.

Everything else v2 does, v3 does too, on the same chains and tokens.

## The v2 pages

- [Quickstart](/v2/quickstart/) and [API access](/v2/api-access/)
- Guides: [Conventions](/v2/guides/conventions/), [Order lifecycle](/v2/guides/order-lifecycle/), [Quotes and pricing](/v2/guides/quotes/), [Build and deposit](/v2/guides/build-and-deposit/), [Track orders](/v2/guides/track-orders/), [Cancel and refunds](/v2/guides/cancel-and-refunds/), [Fees and commission](/v2/guides/fees/), [Errors and retries](/v2/guides/errors/), [Rate limits and reliability](/v2/guides/rate-limits/), [Supported chains and tokens](/v2/guides/supported-assets/)
- [API reference](/v2/api/), generated from [`/openapi/v2.json`](/openapi/v2.json)

For Solana-source builds, use the returned `depositToken.token` mint and
`expectedAmount` to fund the deposit wallet's associated token account. Select
assets from `/v2/params`; sending a different mint does not fund the order. See
[Build and deposit](/v2/guides/build-and-deposit/) for exact funding rules.
