LLMs.txt: Complete documentation index for AI agents
Export answers generated from a Spotter conversation

Export answers generated from a Spotter conversation

When the Spotter AI agent generates an Answer in a conversation session, you can use the Answer report API to export or download that Answer.

For information about sending queries to a conversation session, see Spotter agent conversation APIs. For information about the streaming response format, see Spotter agent streaming APIs.

Process results generated from a conversation session🔗

To export or download the Answer data generated by the Spotter APIs, use the Answer report API.

The session_id and gen_no values of the answer event metadata generated from the Spotter conversation API response are required to identify the answer to export.

Note
Requires at least view access to the Answer.
curl -X POST \
  --url 'https://{ThoughtSpot-Host}/api/rest/2.0/report/answer' \
  -H 'Authorization: Bearer {Bearer_token}' \
  -H 'Accept: application/octet-stream' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "session_identifier": "sess-abc-123",
  "generation_number": 1,
  "file_format": "CSV"
}'

The file_format parameter accepts PDF, PNG, CSV, or XLSX.

Note

Using tokens generated by the Spotter API in a Search Data API request can return invalid column errors, because these tokens may reference formulas or columns not present in the data model. Instead, use the Answer report API and include the session ID and generation number obtained from the Spotter API in your API request to retrieve the data.

© 2026 ThoughtSpot Inc. All Rights Reserved.