# Prompt History

Source: https://www.ranked.ai/developers/api-reference/prompts/history

`GET https://app.ranked.ai/api/v1/projects/{projectId}/prompts/{promptId}/history`

> Get AI model response history with citations for a prompt

Returns the full response history from each AI model, including the response content, brand position, and cited sources.

### Path parameters

- `projectId` (path, string, required): Project UUID
- `promptId` (path, string, required): Prompt UUID

### Query parameters

- `limit` (query, number, default 50): Max responses to return
- `offset` (query, number, default 0): Number to skip
- `date_from` (query, string): Start date (ISO 8601). Defaults to 90 days ago.
- `date_to` (query, string): End date (ISO 8601)

**Request**

```bash cURL
curl "https://app.ranked.ai/api/v1/projects/{projectId}/prompts/{promptId}/history?limit=5" \
  -H "Authorization: Bearer rk_live_your_api_key"
```

**Response**

```json 200
{
  "success": true,
  "data": {
    "prompt_id": "bd17920c-61ff-4298-9116-f0a8035aabf3",
    "prompt": "Who provides tree services for HOA properties in Sioux City, Iowa?",
    "responses": [
      {
        "model": "perplexity/sonar",
        "is_visible": true,
        "position": 5,
        "citations_count": 6,
        "citations": [
          {
            "url": "https://siouxcitytreeco.com",
            "title": "siouxcitytreeco.com",
            "domain": "siouxcitytreeco.com"
          }
        ],
        "response_excerpt": "Several companies in Sioux City, IA, offer professional tree services...",
        "checked_at": "2026-05-10T00:30:51.679+00:00"
      }
    ]
  },
  "meta": {
    "pagination": { "total": 36, "limit": 5, "offset": 0, "has_more": true }
  }
}
```
