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

# Subscribe

> Create a subscription checkout session

Creates a checkout URL for a new subscription. First-time subscribers get a 7-day trial with 20 credits.

### Request Body

| Parameter | Type   | Required | Description        |
| --------- | ------ | -------- | ------------------ |
| `plan`    | string | Yes      | `starter` or `pro` |

### Response `200`

```json theme={"theme":"css-variables"}
{
  "checkout_url": "https://checkout.example.com/c/pay/...",
  "session_id": "cs_live_...",
  "expires_at": "2026-05-02T11:30:00Z",
  "hint": "Open the checkout URL to complete payment.",
  "next_steps": [{ "command": "naive billing status", "description": "Check if payment completed" }]
}
```

After the user completes payment, the subscription and credits are provisioned automatically via webhook.
