Skip to main content
Returns the raw response from one AI assistant for one prompt, plus the parsed list of apps the assistant mentioned. This is the “show me the receipts” endpoint — useful for:
  • Verifying why a particular intent has the visibility / sentiment score it does.
  • Debugging an unexpected mention (e.g. why the assistant suggested an unrelated competitor).
  • Embedding a “view source answer” link in your dashboard so users can see the actual model output.
answerId is exposed by the intent drill-down endpoint inside the prompts[].latestAnswers[] array.

Path parameters


Response

answer fields

mentions fields

One row per app the assistant referred to in the answer, ordered by position.

Citation handling

For models with web search (currently Perplexity), the assistant often inserts inline citation markers like [1], [2], [3] — those numbers map 1-indexed into the answer.citations array. If you want to match a mention back to a citation: when we extract mentions, the second-pass parser also returns a citationIndex on each app. That value is stored in the underlying ai_visibility_app_mentions table; it isn’t currently exposed on this endpoint, but you can match the [N] markers in rawText to answer.citations[N-1] yourself for now.

Code examples


Pattern: walk every answer for an intent


Credits

  • 1 credit per call.

Errors


See also

  • Intents endpoint — source of answerIds in prompts[].latestAnswers[]
  • Prompts — see/manage the prompt that produced this answer
  • Overview — concept page