Skip to content

Get the AI generated key metrics summary via POST

Request

Same as the GET variant, for filter selections too large to fit in query parameters.

Bodyapplication/jsonrequired
languagestring or null

Language the summary should be generated in

Example:"en"
locationIdsArray of integers or null, (int64)

List of location IDs to include

businessIdsArray of integers or null, (int64)

List of business IDs to include

locationGroupIdsArray of integers or null, (int64)

List of location group IDs to include

labelsArray of strings or null

List of labels to include

excludedLocationIdsArray of integers or null, (int64)

List of location IDs to exclude

excludedBusinessIdsArray of integers or null, (int64)

List of business IDs to exclude

excludedLocationGroupIdsArray of integers or null, (int64)

List of location group IDs to exclude

excludedLabelsArray of strings or null

List of labels to exclude

filterCategorystring or null

Filter strategy to apply: location-groups, labels, business, or location

querystring or null

Search query string depending on filter category

curl -i -X POST \
  https://uberall.com/api/home/key-metrics/ai-summary \
  -H 'Content-Type: application/json' \
  -d '{
    "language": "en",
    "locationIds": [
      0
    ],
    "businessIds": [
      0
    ],
    "locationGroupIds": [
      0
    ],
    "labels": [
      "string"
    ],
    "excludedLocationIds": [
      0
    ],
    "excludedBusinessIds": [
      0
    ],
    "excludedLocationGroupIds": [
      0
    ],
    "excludedLabels": [
      "string"
    ],
    "filterCategory": "string",
    "query": "string"
  }'

Responses

Summary retrieved successfully

Bodyapplication/json
summaryobject

The generated summary, null when there is no data to summarize

Response
{ "summary": { "id": "string", "text": "string", "trend": "POSITIVE", "ctaPrompt": "string" } }