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

# Cookbook API request examples

> Request and response examples for the cookbook quickstart and chat routes.

## `POST /api/quickstart`

### Request

```json theme={null}
{
  "prompt": "hello",
  "personaId": "optional-uuid"
}
```

### Response

```json theme={null}
{
  "text": "...",
  "model": "persona-uuid"
}
```

## `POST /api/chat`

### Request

```json theme={null}
{
  "messages": [{ "role": "user", "content": "hello" }],
  "personaId": "optional-uuid"
}
```

### Response

```json theme={null}
{
  "reply": "...",
  "model": "persona-uuid"
}
```

## Shared error response

```json theme={null}
{
  "error": {
    "type": "validation | config | provider",
    "message": "..."
  }
}
```
