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

# Prompt Answers

> Retrieve all AI-generated responses for a specific prompt

Retrieve all AI-generated responses for a specific prompt, including detected brand mentions and cited sources.

### Path Parameters

<ParamField path="brandId" type="string" required>
  The unique identifier of the brand
</ParamField>

<ParamField path="promptId" type="string" required>
  The unique identifier of the prompt
</ParamField>

### Query Parameters

<ParamField query="provider" type="string">
  Filter by AI provider. Supports comma-separated multi-select (e.g., `chatgpt,claude`).
</ParamField>

### Example Request

```bash theme={null}
curl -X GET "https://www.qwairy.co/api/v1/brands/cm1234567890abcdef/prompts/q1/answers" \
  -H "Authorization: Bearer qw-api-your-token-here"
```

### Example Response

```json theme={null}
{
  "success": true,
  "prompt": {
    "id": "q1",
    "text": "What are the best products in this category?"
  },
  "total": 2,
  "answers": [
    {
      "id": "ans1",
      "provider": "ChatGPT",
      "model": "GPT-4o",
      "text": "Based on recent reviews and comparisons...",
      "hasSelfMention": true,
      "selfMentionPosition": 3,
      "hasSelfSource": false,
      "competitorsMentioned": ["My Brand", "Competitor A", "Competitor B"],
      "sourcesCited": ["industry-news.com", "expert-reviews.com"],
      "sentiment": 82,
      "createdAt": "2024-12-19T10:00:00.000Z"
    },
    {
      "id": "ans2",
      "provider": "Perplexity",
      "model": "Sonar Large",
      "text": "According to expert reviews and user feedback...",
      "hasSelfMention": true,
      "selfMentionPosition": 2,
      "hasSelfSource": true,
      "competitorsMentioned": ["My Brand", "Competitor C", "Competitor D"],
      "sourcesCited": ["mybrand.com", "consumer-reports.com"],
      "sentiment": 78,
      "createdAt": "2024-12-19T10:05:00.000Z"
    }
  ]
}
```
