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

# API Overview

> The Builder Box uses tRPC and Hono for type-safe API communication between the client and server. This documentation will guide you through setting up, using, and extending the API.

## API Types

Our API is organized into three main types of routes:

<CardGroup cols={3}>
  <Card title="Public Routes" icon="globe" href="/api-setup/public">
    Routes accessible without authentication for public data access, health checks, and authentication endpoints.
  </Card>

  <Card title="Protected Routes" icon="lock" href="/api-setup/protected">
    Routes requiring user authentication for user-specific data, profile management, and personal settings.
  </Card>

  <Card title="Subscribed Routes" icon="star" href="/api-setup/subscribed">
    Routes requiring an active subscription for premium features and subscription-gated content.
  </Card>
</CardGroup>

## Key Features

* Full type safety between client and server
* Built-in request validation
* Easy error handling

## Getting Started

Lets walk you through the implimentation we had for the APIs.

1. Set up the tRPC client in your frontend
2. Choose the appropriate route type for your needs
3. Implement your API endpoints
4. Call your endpoints from the client

## Next Steps

* [Public Routes](./api-setup/public)
* [Protected Routes](./api-setup/protected)
* [Subscribed Routes](./api-setup/subscribed)
* [Client Usage](./api-setup/client)
* [Best Practices](./best-practices)
