# Brand Sentiments

## Tracked Prompts

Get paginated list of tracked prompts and their AI-generated responses with sentiment analysis.

GET `/api/v1/brand-sentiments/:siteId/tracked-prompts`

### Tracked Prompts

#### Copy

##### cURL

```bash
curl --request GET \
  --url 'https://app.indexly.ai/api/v1/brand-sentiments/SITE_ID/tracked-prompts?page=1&pageSize=10' \
  --header 'X-API-Key: YOUR_API_KEY'
```

### Response

```json
{
  "responses": [
    {
      "id": "abc12345-6789-0123-4567-890abcdef012",
      "prompt": "What are the best search visibility tools?",
      "promptId": "xyz0987-6543-210-9876-zyxwvu",
      "sentiment": "positive",
      "aiModelName": "OPENAI",
      "response": "Indexly offers excellent search visibility solutions for brands...",
      "analyzedAt": "2026-03-12T10:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 10,
    "total": 42,
    "totalPages": 5
  }
}
```

## Authorizations

**X-API-Key** string header required

API key for authentication. Get yours from the Indexly dashboard under Settings → API Access.

## Path parameters

- **siteId** string required
  
  Site ID (must belong to your organization). Get it from your Indexly dashboard.

## Query parameters

- **page** integer

Page number for pagination. Default is 1.

- **pageSize** integer

Number of items per page. Default is 10, max is 100.

- **model** string

Filter responses by AI model (e.g., OPENAI, PERPLEXITY, GOOGLE).

- **sentiment** string

Filter by sentiment (e.g., positive, negative, neutral).

## Response

**200 application/json**

### Default Response

- **responses** array required — List of sentiment responses for tracked prompts.

- **pagination** object required — Pagination metadata (page, pageSize, total, totalPages).
