> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://one.miles-api.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://one.miles-api.com/_mcp/server.

# Miles USP API

# Miles USP API (MilesOne)

Welcome to the interactive API reference for the **Miles USP FastAPI backend** — the strangler-fig rebuild of the former Django monolith. Every product route is served under the **`/v7`** prefix.

## What you can do here

* Browse **281 endpoints** grouped by product module (account, CAIRA, masterclass, commerce, and more).
* Try requests in the **API Explorer** against Production, UAT, or Local servers.
* Copy **HTTP snippets** (cURL, Python, TypeScript, Go, and more).

## Base URLs

| Environment | URL                                                                |
| ----------- | ------------------------------------------------------------------ |
| Production  | `https://api.milescaira.com`                                       |
| UAT         | `https://miles-usp-backend-uat-2-154625965269.asia-south1.run.app` |
| Local       | `http://localhost:8080`                                            |

All versioned routes are under `/v7` (e.g. `GET /v7/ping`).

## Next steps

1. Read [Getting started](/getting-started) for environment setup and your first request.
2. Review [Authentication](/authentication) for dual-JWT Bearer tokens and admin phone OTP login.
3. Jump to the [API Reference](/api-reference) for endpoint details.