REST APIAI Answer
Get AI answer
Retrieve one AI answer by its id: the full response an AI engine gave to a monitored prompt, with the sources it cited. Use it to read the wording behind a metric or a citation.
Authorization
BearerAuth AuthorizationBearer <token>
API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
ai-answer*string
Unique identifier for the AI answer
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.useomnia.com/api/v1/ai-answers/string"{
"data": {
"answer": "Based on my analysis, the best software for small businesses includes Brand 1, Brand 2, and Brand 3...",
"citations": [
{
"title": "Best Software 2026 | Acme Reviews",
"url": "https://example.com/software-reviews"
}
],
"createdAt": "2026-01-01T09:30:00Z",
"engine": "openai",
"id": 12345,
"mentioned": true,
"mentionedBrands": [
"Brand 1",
"Brand 2",
"Brand 3"
],
"promptId": "550e8400-e29b-41d4-a716-446655440000",
"query": "What is the best software for small businesses?"
}
}{
"error": {
"code": 1002,
"description": "Invalid input parameters"
}
}{
"error": {
"code": 1004,
"description": "Invalid or expired API token"
}
}{
"error": {
"code": 1006,
"description": "Item not found"
}
}{
"error": {
"code": 1001,
"description": "Internal error"
}
}