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

# AI Assistant Answers API

> Returns an AI assistant's answer to a prompt with its cited sources, localised by country.

`POST /v1/data/ai/answers/run`

**Pricing:** $0.008 per answer ($8.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**prompts** `string[]` *required*

One or more questions to ask the AI assistants, up to 2,000 characters each.

**assistants** `string[]` (default: \["chatgpt", "gemini", "perplexity"])

Which AI assistants to query for each prompt.

Allowed values: `chatgpt` (ChatGPT), `gemini` (Gemini), `perplexity` (Perplexity (model with web search)), `claude` (Claude (model with web search)), `google-ai-mode` (Google AI Mode), `google-ai-overview` (Google AI Overview).

**country** `string` (default: US)

Country the assistants answer from, e.g. United States. Defaults to United States.

Allowed values: `AU` (Australia), `BR` (Brazil), `CA` (Canada), `FR` (France), `DE` (Germany), `IN` (India), `IT` (Italy), `JP` (Japan), `MX` (Mexico), `NL` (Netherlands), `ZA` (South Africa), `KR` (South Korea), `ES` (Spain), `GB` (United Kingdom), `US` (United States).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/ai/answers/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "prompts": [
      "What is the best CRM for small business?",
      "What are the best project management tools for remote teams?",
      "Which running shoes are best for beginners?"
    ],
    "assistants": [
      "chatgpt"
    ],
    "country": "US"
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/ai/answers/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "prompts": [
        "What is the best CRM for small business?",
        "What are the best project management tools for remote teams?",
        "Which running shoes are best for beginners?"
    ],
    "assistants": [
        "chatgpt"
    ],
    "country": "US"
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/ai/answers/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "prompts": [
    "What is the best CRM for small business?",
    "What are the best project management tools for remote teams?",
    "Which running shoes are best for beginners?"
  ],
  "assistants": [
    "chatgpt"
  ],
  "country": "US"
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one answer, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `prompt` | Prompt | text |
| `assistant` | Assistant | text |
| `country` | Country | text |
| `model` | Model | text |
| `aiAnswer` | AI Answer | text |
| `aiAnswerSources` | Sources | object\_array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "ai/answers",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "prompt": "What is the best CRM for small business?",
      "assistant": "chatgpt",
      "aiAnswerSources": [
        {
          "url": "https://www.hubspot.com/products/crm",
          "title": "Visit HubSpot",
          "domain": "www.hubspot.com"
        },
        {
          "url": "https://www.zoho.com/crm/",
          "title": "Visit Zoho CRM",
          "domain": "www.zoho.com"
        }
      ],
      "aiAnswer": "# Best CRM for small businesses in 2026\n\n**My top recommendation is HubSpot CRM for most small businesses.** It offers a strong free starting point, is relat...",
      "country": "US",
      "model": "gpt-6"
    }
  ]
}
```

## Related APIs

To track whether assistants mention your brand vs competitors use [`llm/brand-mentions`](https://docs.mindcase.co/apis/llm/brand-mentions).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.