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

# Build with AI Quick Start

> Connect your coding agent to the Fanvue docs and API, then paste one prompt to scaffold a working app.

Connect your coding agent to the live Fanvue API, then paste one prompt to scaffold your app. No copy-pasting docs into context, no guessing at endpoints. {/* HIDDEN — future feature (Docs MCP). The original opening promised three steps; the first connected the live Docs MCP so the agent could search the docs as it wrote. Restore when it ships. */}

<Steps>
  <Step title="Give your agent our API (live)">
    Connect the Fanvue API MCP server so the agent can call and test real endpoints as it builds:

    ```
    https://mcp.fanvue.com/mcp
    ```

    The agent authorizes through Fanvue's standard OAuth flow on first use, no API keys to paste. For the full per-client setup (Claude, ChatGPT, Cursor, Claude Code, Codex), see the [MCP Server page](/docs/mcp-server).
  </Step>

  <Step title="Paste the golden prompt">
    Drop this into your agent verbatim, then fill in the build description on the last line:

    ```
    You are building an app on the Fanvue API. Before writing any code:
    1. Read the Fanvue docs at https://api.fanvue.com/docs/llms-full.txt for: OAuth
       setup, scopes, and the conventions page. Follow them exactly.
    2. Start from the Fanvue App Starter template: github.com/fanvue/fanvue-app-starter
    3. Use pnpm for all install, dev, and build commands (required).
    4. Authenticate with OAuth 2.0. Request only the scopes the app needs. Include the
       required system scopes (openid, offline_access, offline).
    5. Use cursor-based pagination for list endpoints. Treat all timestamps as UTC.
    6. If building for an agency, use the creator-scoped endpoints and group results by
       creatorUuid.
    Then build: [describe what you want here].
    Test each endpoint against the live Fanvue MCP server (mcp.fanvue.com/mcp) as you go.
    ```
  </Step>
</Steps>

<Note>
  The [Fanvue App Starter](https://github.com/fanvue/fanvue-app-starter) is a Next.js + pnpm template with OAuth preconfigured, so your agent starts from working auth instead of building it from scratch.
</Note>

<CardGroup cols={2}>
  <Card title="MCP Server" icon="plug" href="/docs/mcp-server">
    Full per-client setup for the Fanvue API MCP server, plus what your assistant can do once connected.
  </Card>

  <Card title="API Conventions" icon="book" href="/docs/api-reference/overview">
    Base URL, authentication, pagination, and the conventions your agent should follow.
  </Card>
</CardGroup>
