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

# How do I export AI answers, sentiment, and citations through the API?

> Retrieve response history, filter by prompt and platform, and export answer details and citation analytics for reporting.

Use `/v2/responses` for answer history and `/v2/responses/{id}` for an individual answer's detail. Use citation and source endpoints for aggregate views across the workspace. Read-only access is sufficient for these exports.

## Retrieve the answer history

Filter by the intended prompt, platform, date range, collection status, and analysis status. Paginate through the collection using the returned cursor.

```bash theme={null}
curl --get --fail-with-body \
  'https://app.chatobserver.com/api/v2/responses' \
  -H "Authorization: Bearer $CHATOBSERVER_API_KEY" \
  --data-urlencode 'from=2026-09-01T00:00:00Z' \
  --data-urlencode 'to=2026-09-07T23:59:59Z' \
  --data-urlencode 'status=complete' \
  --data-urlencode 'analysisStatus=complete'
```

The dates above are illustrative. Choose the reporting period your export needs. A list item includes an excerpt and metadata; retrieve the detail endpoint when you need the answer content rather than a shortened excerpt.

## Combine evidence using stable identifiers

Keep response and prompt identifiers in your export so an observation can be traced to its question and answer. Preserve platform, collection date, sentiment, and citation information as separate fields.

Use `/v2/sources/domains` and the citation endpoints to examine domain and page patterns. Do not treat an aggregate source count as the citation list for an individual answer.

## Build a reliable reporting dataset

Keep missing values distinct from zero and pending analysis distinct from a neutral result. Make pagination resumable and retain the date window and filters used for each export. If a request fails, follow [error handling](https://chatobserver.com/docs/developers/errors-and-rate-limits.md) without restarting every completed page unnecessarily.

## How are failed or incomplete answers represented?

Use `status` and `analysisStatus` to distinguish collection from analysis. If collection fails, `answerText` and `contentExcerpt` are null; a failure message is never presented as an answer. If collection succeeds but analysis fails, the answer remains available.

`errorReason` contains a stable product message: `Answer collection failed.` or `Answer analysis failed.`, or null when neither stage has failed. Treat status fields as the machine-readable contract rather than parsing this text. Provider diagnostics are not part of the response.

For compatibility, the deprecated `startedAt` field remains present and always returns null. The V1 detail field `analysisCompletedAt` also remains nullable and returns null. Use the answer's creation and completion timestamps to follow its status. V1 `analysisSummary` includes only answer content, citations, links and recognized sentiment; arbitrary internal metadata is excluded. Paths, identifiers and existing successful answer content are unchanged.


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