Omnia docs
REST APIAI Answer

List AI answers

Retrieve a paginated list of AI answers for the given prompt. Pagination in this endpoint is not 100% accurate and pages might have fewer items than initially requested. For the same reason, the real total number of items can be lower than the one reported in responses

GET
/api/v1/prompts/{prompt}/ai-answers

Authorization

BearerAuth
AuthorizationBearer <token>

API token authentication. Use format: Bearer ot_your-token-here

In: header

Path Parameters

prompt*string

Unique identifier for the prompt

Formatuuid

Query Parameters

page?integer

Page number (1-indexed)

Default1
Range1 <= value
pageSize?integer

Number of items per page

Default20
Range1 <= value <= 100
startDate*string

Start date for filtering data (ISO 8601 date format). Range is inclusive.

Formatdate
endDate*string

End date for filtering data (ISO 8601 date format). Range is inclusive.

Formatdate
engine?string

Filter results by specific AI engine. Omit to return answers from all supported engines

Value in"google-ai-overviews" | "google-ai-mode" | "perplexity" | "openai" | "gemini" | "grok" | "copilot" | "claude" | "bing-ai-mode"
sortBy?string

Field to sort results by

Value in"created_at" | "execution_date" | "share_of_voice" | "mentioned" | "engine_id"
sortDirection?string

Direction to sort results

Default"desc"
Value in"asc" | "desc"
mentioned?string

Filter to only show answers where the tracked brand was mentioned

mentionedBrands?string

Comma-separated list of normalized brand names to filter by. Only answers mentioning these brands are returned. Use the availableBrands keys from filterOptions in the response to discover valid values

citations?string

Comma-separated list of domains to filter by. Only answers citing these domains are returned. Use availableCitations from filterOptions in the response to discover valid values

featureAttribution?string

Filter by feature attribution using colon-delimited format: featureName:brandName:sentiment. At least one segment must be provided. Segments can be omitted from the right, or left empty to skip. All values must be normalized (lowercased, no diacritics or special characters). Valid sentiment values: endorsed, undermined, neutral. Use availableFeatures from filterOptions in the response to discover valid features. Examples: 'pricing' (feature only), 'pricing:acme' (feature + brand), 'pricing:acme:endorsed' (all three), '::undermined' (sentiment only), ':acme:endorsed' (brand + sentiment)

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.useomnia.com/api/v1/prompts/550e8400-e29b-41d4-a716-446655440000/ai-answers?startDate=2026-01-01&endDate=2026-01-31"
{
  "pagination": {
    "page": 1,
    "pageSize": 10,
    "totalItems": 420
  },
  "links": {
    "prev": "https://app.useomnia.com/api/v1/resource?page=1&pageSize=10",
    "next": "https://app.useomnia.com/api/v1/resource?page=3&pageSize=10"
  },
  "data": {
    "answers": [
      {
        "id": 12345,
        "engine": "openai",
        "createdAt": "2026-01-01T09:30:00Z",
        "hasAnswer": true,
        "domains": [
          "acme.com",
          "example.com"
        ],
        "shareOfVoice": 0.25,
        "mentioned": true,
        "mentionedBrands": [
          "Brand 1",
          "Brand 2",
          "Brand 3"
        ],
        "sentiment": {
          "endorsed": 2,
          "undermined": 1,
          "neutral": 3
        }
      }
    ],
    "filterOptions": {
      "availableBrands": {
        "property1": {
          "domain": "acme.com",
          "name": "Acme Corporation"
        },
        "property2": {
          "domain": "acme.com",
          "name": "Acme Corporation"
        }
      },
      "availableCitations": [
        "acme.com",
        "example.com"
      ],
      "availableFeatures": [
        {
          "featureName": "pricing",
          "brands": [
            "acme",
            "competitor"
          ]
        }
      ]
    }
  }
}
{
  "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"
  }
}