Skip to content

AI search knowledge base articles

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
keystring
timeFilterobject(TimeFilter_request)
previousTimeFilterobject(TimeFilter_request)
eventBasedTimeRangestring
reportingEnginestring
queryobject(Query)
queriesArray of objects(Query)
filtersArray of objects(Filter_request)
filterobject(Filter_request)
hierarchicalFilterobject(HierarchicalFilter)
knnSearchFilterobject(KNNSearchFilter)
postFiltersArray of objects(Filter_request)
projectionFiltersArray of objects(Filter_request)
pinnedFiltersArray of items
streamRequestInfoobject(StreamRequestInfo)
dynamicBenchmarkInfosArray of objects(DynamicBenchmarkInfo)
groupBysArray of objects(Group)
projectionsArray of objects(Projection)
reportstring
permissionstring
tzOffsetinteger, (int64)
timezonestring
sortsArray of objects(Sort_request)
pageobject(Page_request)
pageForDocumentsobject(Page_request)
sortsForDocumentsArray of objects(Sort_request)
functionScoreobject(FunctionScore)
mergeobject(Merge)
additionalobject
cacheDisabledboolean
projectionDecorationsArray of objects
excludeFieldsArray of objects
sortValuesobject
reportDateFieldstring
transientRequestStateobject

Unresolved type (transientMap<String, Object>)

projectionsGroupByobject

Unresolved type (transientGroup)

filterControlobject(DBFilterControl)
curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/knowledgebase/article/ai-search \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "key": "string",
    "timeFilter": {
      "field": "string",
      "sinceTime": 0,
      "untilTime": 0,
      "includeLower": true,
      "includeUpper": true,
      "additional": {
        "property1": {},
        "property2": {}
      }
    },
    "previousTimeFilter": {
      "field": "string",
      "sinceTime": 0,
      "untilTime": 0,
      "includeLower": true,
      "includeUpper": true,
      "additional": {
        "property1": {},
        "property2": {}
      }
    },
    "eventBasedTimeRange": "string",
    "reportingEngine": "string",
    "query": {
      "queryType": {},
      "field": "string",
      "queryText": "string",
      "values": [
        "string"
      ],
      "boost": 0.1,
      "queries": [
        {}
      ],
      "filters": [
        {
          "displayName": "string",
          "isCompoundFilter": true,
          "negativeFilter": true,
          "filterType": "FILTER",
          "field": "string",
          "values": [
            {}
          ],
          "accessibleValues": [
            {}
          ],
          "userFilter": true,
          "allValuesAllowed": true,
          "lockedWithValues": true,
          "hidden": true,
          "favourite": true,
          "mandatory": true,
          "locked": true,
          "ignoreAddingToDimensionFilter": true,
          "disabled": true,
          "details": {
            "property1": {},
            "property2": {}
          },
          "filters": [
            {}
          ],
          "advancedFilters": [
            {
              "filter": "string",
              "fieldInfo": {
                "property1": {},
                "property2": {}
              },
              "valueInfo": {
                "property1": {},
                "property2": {}
              },
              "type": "POST",
              "field": "string",
              "details": {
                "property1": {},
                "property2": {}
              },
              "label": "string",
              "value": "string",
              "additional": {
                "property1": {},
                "property2": {}
              }
            }
          ]
        }
      ],
      "details": {
        "property1": {},
        "property2": {}
      }
    },
    "queries": [
      {
        "queryType": {},
        "field": "string",
        "queryText": "string",
        "values": [
          "string"
        ],
        "boost": 0.1,
        "queries": [
          {}
        ],
        "filters": [
          {
            "displayName": "string",
            "isCompoundFilter": true,
            "negativeFilter": true,
            "filterType": "FILTER",
            "field": "string",
            "values": [
              {}
            ],
            "accessibleValues": [
              {}
            ],
            "userFilter": true,
            "allValuesAllowed": true,
            "lockedWithValues": true,
            "hidden": true,
            "favourite": true,
            "mandatory": true,
            "locked": true,
            "ignoreAddingToDimensionFilter": true,
            "disabled": true,
            "details": {
              "property1": {},
              "property2": {}
            },
            "filters": [
              {}
            ],
            "advancedFilters": [
              {
                "filter": "string",
                "fieldInfo": {},
                "valueInfo": {
                  "property1": {},
                  "property2": {}
                },
                "type": "POST",
                "field": "string",
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "label": "string",
                "value": "string",
                "additional": {
                  "property1": {},
                  "property2": {}
                }
              }
            ]
          }
        ],
        "details": {
          "property1": {},
          "property2": {}
        }
      }
    ],
    "filters": [
      {
        "displayName": "string",
        "isCompoundFilter": true,
        "negativeFilter": true,
        "filterType": "FILTER",
        "field": "string",
        "values": [
          {}
        ],
        "accessibleValues": [
          {}
        ],
        "userFilter": true,
        "allValuesAllowed": true,
        "lockedWithValues": true,
        "hidden": true,
        "favourite": true,
        "mandatory": true,
        "locked": true,
        "ignoreAddingToDimensionFilter": true,
        "disabled": true,
        "details": {
          "property1": {},
          "property2": {}
        },
        "filters": [
          {}
        ],
        "advancedFilters": [
          {
            "filter": "string",
            "fieldInfo": {
              "property1": {
                "name": "string",
                "label": "string",
                "type": "LONG",
                "fieldType": "string",
                "header": "string"
              },
              "property2": {
                "name": "string",
                "label": "string",
                "type": "LONG",
                "fieldType": "string",
                "header": "string"
              }
            },
            "valueInfo": {
              "property1": {},
              "property2": {}
            },
            "type": "POST",
            "field": "string",
            "details": {
              "property1": {},
              "property2": {}
            },
            "label": "string",
            "value": "string",
            "additional": {
              "property1": {},
              "property2": {}
            }
          }
        ]
      }
    ],
    "filter": {
      "displayName": "string",
      "isCompoundFilter": true,
      "negativeFilter": true,
      "filterType": "FILTER",
      "field": "string",
      "values": [
        {}
      ],
      "accessibleValues": [
        {}
      ],
      "userFilter": true,
      "allValuesAllowed": true,
      "lockedWithValues": true,
      "hidden": true,
      "favourite": true,
      "mandatory": true,
      "locked": true,
      "ignoreAddingToDimensionFilter": true,
      "disabled": true,
      "details": {
        "property1": {},
        "property2": {}
      },
      "filters": [
        {}
      ],
      "advancedFilters": [
        {
          "filter": "string",
          "fieldInfo": {
            "property1": {
              "name": "string",
              "label": "string",
              "type": "LONG",
              "fieldType": "string",
              "header": "string"
            },
            "property2": {
              "name": "string",
              "label": "string",
              "type": "LONG",
              "fieldType": "string",
              "header": "string"
            }
          },
          "valueInfo": {
            "property1": {},
            "property2": {}
          },
          "type": "POST",
          "field": "string",
          "details": {
            "property1": {},
            "property2": {}
          },
          "label": "string",
          "value": "string",
          "additional": {
            "property1": {},
            "property2": {}
          }
        }
      ]
    },
    "hierarchicalFilter": {
      "hierarchyType": "string",
      "filterMappings": [
        {}
      ],
      "selectedValues": [
        {}
      ]
    },
    "knnSearchFilter": {
      "field": "string",
      "queryVector": [
        0.1
      ],
      "k": 0,
      "numCandidates": 0,
      "boost": 0.1,
      "hybridKnnSearch": true,
      "minScore": 0.1
    },
    "postFilters": [
      {
        "displayName": "string",
        "isCompoundFilter": true,
        "negativeFilter": true,
        "filterType": "FILTER",
        "field": "string",
        "values": [
          {}
        ],
        "accessibleValues": [
          {}
        ],
        "userFilter": true,
        "allValuesAllowed": true,
        "lockedWithValues": true,
        "hidden": true,
        "favourite": true,
        "mandatory": true,
        "locked": true,
        "ignoreAddingToDimensionFilter": true,
        "disabled": true,
        "details": {
          "property1": {},
          "property2": {}
        },
        "filters": [
          {}
        ],
        "advancedFilters": [
          {
            "filter": "string",
            "fieldInfo": {
              "property1": {
                "name": "string",
                "label": "string",
                "type": "LONG",
                "fieldType": "string",
                "header": "string"
              },
              "property2": {
                "name": "string",
                "label": "string",
                "type": "LONG",
                "fieldType": "string",
                "header": "string"
              }
            },
            "valueInfo": {
              "property1": {},
              "property2": {}
            },
            "type": "POST",
            "field": "string",
            "details": {
              "property1": {},
              "property2": {}
            },
            "label": "string",
            "value": "string",
            "additional": {
              "property1": {},
              "property2": {}
            }
          }
        ]
      }
    ],
    "projectionFilters": [
      {
        "displayName": "string",
        "isCompoundFilter": true,
        "negativeFilter": true,
        "filterType": "FILTER",
        "field": "string",
        "values": [
          {}
        ],
        "accessibleValues": [
          {}
        ],
        "userFilter": true,
        "allValuesAllowed": true,
        "lockedWithValues": true,
        "hidden": true,
        "favourite": true,
        "mandatory": true,
        "locked": true,
        "ignoreAddingToDimensionFilter": true,
        "disabled": true,
        "details": {
          "property1": {},
          "property2": {}
        },
        "filters": [
          {}
        ],
        "advancedFilters": [
          {
            "filter": "string",
            "fieldInfo": {
              "property1": {
                "name": "string",
                "label": "string",
                "type": "LONG",
                "fieldType": "string",
                "header": "string"
              },
              "property2": {
                "name": "string",
                "label": "string",
                "type": "LONG",
                "fieldType": "string",
                "header": "string"
              }
            },
            "valueInfo": {
              "property1": {},
              "property2": {}
            },
            "type": "POST",
            "field": "string",
            "details": {
              "property1": {},
              "property2": {}
            },
            "label": "string",
            "value": "string",
            "additional": {
              "property1": {},
              "property2": {}
            }
          }
        ]
      }
    ],
    "pinnedFilters": [
      [
        {
          "displayName": "string",
          "isCompoundFilter": true,
          "negativeFilter": true,
          "filterType": "FILTER",
          "field": "string",
          "values": [
            {}
          ],
          "accessibleValues": [
            {}
          ],
          "userFilter": true,
          "allValuesAllowed": true,
          "lockedWithValues": true,
          "hidden": true,
          "favourite": true,
          "mandatory": true,
          "locked": true,
          "ignoreAddingToDimensionFilter": true,
          "disabled": true,
          "details": {
            "property1": {},
            "property2": {}
          },
          "filters": [
            {}
          ],
          "advancedFilters": [
            {
              "filter": "string",
              "fieldInfo": {
                "property1": {},
                "property2": {}
              },
              "valueInfo": {
                "property1": {},
                "property2": {}
              },
              "type": "POST",
              "field": "string",
              "details": {
                "property1": {},
                "property2": {}
              },
              "label": "string",
              "value": "string",
              "additional": {
                "property1": {},
                "property2": {}
              }
            }
          ]
        }
      ]
    ],
    "streamRequestInfo": {
      "streamFields": [
        {}
      ],
      "resolvedFieldValues": {
        "property1": {
          "property1": {},
          "property2": {}
        },
        "property2": {
          "property1": {},
          "property2": {}
        }
      },
      "name": "string",
      "childName": "string",
      "type": "string",
      "details": {
        "property1": {},
        "property2": {}
      }
    },
    "dynamicBenchmarkInfos": [
      {
        "key": "string",
        "timeFilter": {
          "field": "string",
          "sinceTime": 0,
          "untilTime": 0,
          "includeLower": true,
          "includeUpper": true,
          "additional": {
            "property1": {},
            "property2": {}
          }
        },
        "thresholdMetric": "string",
        "label": "string",
        "hashValue": "string",
        "report": "string",
        "timezone": "string",
        "aggregateFunction": "SUM",
        "additional": {
          "property1": "string",
          "property2": "string"
        },
        "filters": [
          {
            "displayName": "string",
            "isCompoundFilter": true,
            "negativeFilter": true,
            "filterType": "FILTER",
            "field": "string",
            "values": [
              {}
            ],
            "accessibleValues": [
              {}
            ],
            "userFilter": true,
            "allValuesAllowed": true,
            "lockedWithValues": true,
            "hidden": true,
            "favourite": true,
            "mandatory": true,
            "locked": true,
            "ignoreAddingToDimensionFilter": true,
            "disabled": true,
            "details": {
              "property1": {},
              "property2": {}
            },
            "filters": [
              {}
            ],
            "advancedFilters": [
              {
                "filter": "string",
                "fieldInfo": {},
                "valueInfo": {
                  "property1": {},
                  "property2": {}
                },
                "type": "POST",
                "field": "string",
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "label": "string",
                "value": "string",
                "additional": {
                  "property1": {},
                  "property2": {}
                }
              }
            ]
          }
        ],
        "projectionFilters": [
          {
            "displayName": "string",
            "isCompoundFilter": true,
            "negativeFilter": true,
            "filterType": "FILTER",
            "field": "string",
            "values": [
              {}
            ],
            "accessibleValues": [
              {}
            ],
            "userFilter": true,
            "allValuesAllowed": true,
            "lockedWithValues": true,
            "hidden": true,
            "favourite": true,
            "mandatory": true,
            "locked": true,
            "ignoreAddingToDimensionFilter": true,
            "disabled": true,
            "details": {
              "property1": {},
              "property2": {}
            },
            "filters": [
              {}
            ],
            "advancedFilters": [
              {
                "filter": "string",
                "fieldInfo": {},
                "valueInfo": {
                  "property1": {},
                  "property2": {}
                },
                "type": "POST",
                "field": "string",
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "label": "string",
                "value": "string",
                "additional": {
                  "property1": {},
                  "property2": {}
                }
              }
            ]
          }
        ]
      }
    ],
    "groupBys": [
      {
        "key": "string",
        "field": "string",
        "groupType": "string",
        "details": {
          "property1": {},
          "property2": {}
        },
        "sort": {
          "type": "string",
          "key": "string",
          "order": "string",
          "additional": {
            "property1": {},
            "property2": {}
          },
          "postProjectionSort": {}
        },
        "page": {
          "page": 0,
          "size": 0,
          "skip": 0,
          "cursor": "string"
        },
        "projections": [
          {
            "key": "string",
            "measurement": "string",
            "missing": {},
            "aggregateFunction": {},
            "details": {
              "property1": {},
              "property2": {}
            },
            "filters": [
              {
                "displayName": "string",
                "isCompoundFilter": true,
                "negativeFilter": true,
                "filterType": "FILTER",
                "field": "string",
                "values": [
                  {}
                ],
                "accessibleValues": [
                  {}
                ],
                "userFilter": true,
                "allValuesAllowed": true,
                "lockedWithValues": true,
                "hidden": true,
                "favourite": true,
                "mandatory": true,
                "locked": true,
                "ignoreAddingToDimensionFilter": true,
                "disabled": true,
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "filters": [
                  null
                ],
                "advancedFilters": [
                  null
                ]
              }
            ],
            "group": {}
          }
        ],
        "filters": [
          {
            "displayName": "string",
            "isCompoundFilter": true,
            "negativeFilter": true,
            "filterType": "FILTER",
            "field": "string",
            "values": [
              {}
            ],
            "accessibleValues": [
              {}
            ],
            "userFilter": true,
            "allValuesAllowed": true,
            "lockedWithValues": true,
            "hidden": true,
            "favourite": true,
            "mandatory": true,
            "locked": true,
            "ignoreAddingToDimensionFilter": true,
            "disabled": true,
            "details": {
              "property1": {},
              "property2": {}
            },
            "filters": [
              {}
            ],
            "advancedFilters": [
              {
                "filter": "string",
                "fieldInfo": {},
                "valueInfo": {
                  "property1": {},
                  "property2": {}
                },
                "type": "POST",
                "field": "string",
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "label": "string",
                "value": "string",
                "additional": {
                  "property1": {},
                  "property2": {}
                }
              }
            ]
          }
        ],
        "namedFilters": {
          "property1": [
            {
              "displayName": "string",
              "isCompoundFilter": true,
              "negativeFilter": true,
              "filterType": "FILTER",
              "field": "string",
              "values": [
                {}
              ],
              "accessibleValues": [
                {}
              ],
              "userFilter": true,
              "allValuesAllowed": true,
              "lockedWithValues": true,
              "hidden": true,
              "favourite": true,
              "mandatory": true,
              "locked": true,
              "ignoreAddingToDimensionFilter": true,
              "disabled": true,
              "details": {
                "property1": {},
                "property2": {}
              },
              "filters": [
                {}
              ],
              "advancedFilters": [
                {
                  "fieldInfo": {},
                  "valueInfo": {},
                  "details": {},
                  "additional": {}
                }
              ]
            }
          ],
          "property2": [
            {
              "displayName": "string",
              "isCompoundFilter": true,
              "negativeFilter": true,
              "filterType": "FILTER",
              "field": "string",
              "values": [
                {}
              ],
              "accessibleValues": [
                {}
              ],
              "userFilter": true,
              "allValuesAllowed": true,
              "lockedWithValues": true,
              "hidden": true,
              "favourite": true,
              "mandatory": true,
              "locked": true,
              "ignoreAddingToDimensionFilter": true,
              "disabled": true,
              "details": {
                "property1": {},
                "property2": {}
              },
              "filters": [
                {}
              ],
              "advancedFilters": [
                {
                  "fieldInfo": {},
                  "valueInfo": {},
                  "details": {},
                  "additional": {}
                }
              ]
            }
          ]
        },
        "parentGroup": {},
        "childrenGroupBys": [
          {}
        ]
      }
    ],
    "projections": [
      {
        "key": "string",
        "measurement": "string",
        "missing": {},
        "aggregateFunction": {},
        "details": {
          "property1": {},
          "property2": {}
        },
        "filters": [
          {
            "displayName": "string",
            "isCompoundFilter": true,
            "negativeFilter": true,
            "filterType": "FILTER",
            "field": "string",
            "values": [
              {}
            ],
            "accessibleValues": [
              {}
            ],
            "userFilter": true,
            "allValuesAllowed": true,
            "lockedWithValues": true,
            "hidden": true,
            "favourite": true,
            "mandatory": true,
            "locked": true,
            "ignoreAddingToDimensionFilter": true,
            "disabled": true,
            "details": {
              "property1": {},
              "property2": {}
            },
            "filters": [
              {}
            ],
            "advancedFilters": [
              {
                "filter": "string",
                "fieldInfo": {},
                "valueInfo": {
                  "property1": {},
                  "property2": {}
                },
                "type": "POST",
                "field": "string",
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "label": "string",
                "value": "string",
                "additional": {
                  "property1": {},
                  "property2": {}
                }
              }
            ]
          }
        ],
        "group": {
          "key": "string",
          "field": "string",
          "groupType": "string",
          "details": {
            "property1": {},
            "property2": {}
          },
          "sort": {
            "type": "string",
            "key": "string",
            "order": "string",
            "additional": {
              "property1": {},
              "property2": {}
            },
            "postProjectionSort": {}
          },
          "page": {
            "page": 0,
            "size": 0,
            "skip": 0,
            "cursor": "string"
          },
          "projections": [
            {}
          ],
          "filters": [
            {
              "displayName": "string",
              "isCompoundFilter": true,
              "negativeFilter": true,
              "filterType": "FILTER",
              "field": "string",
              "values": [
                {}
              ],
              "accessibleValues": [
                {}
              ],
              "userFilter": true,
              "allValuesAllowed": true,
              "lockedWithValues": true,
              "hidden": true,
              "favourite": true,
              "mandatory": true,
              "locked": true,
              "ignoreAddingToDimensionFilter": true,
              "disabled": true,
              "details": {
                "property1": {},
                "property2": {}
              },
              "filters": [
                {}
              ],
              "advancedFilters": [
                {
                  "fieldInfo": {},
                  "valueInfo": {},
                  "details": {},
                  "additional": {}
                }
              ]
            }
          ],
          "namedFilters": {
            "property1": [
              {
                "displayName": "string",
                "isCompoundFilter": true,
                "negativeFilter": true,
                "filterType": "FILTER",
                "field": "string",
                "values": [
                  {}
                ],
                "accessibleValues": [
                  {}
                ],
                "userFilter": true,
                "allValuesAllowed": true,
                "lockedWithValues": true,
                "hidden": true,
                "favourite": true,
                "mandatory": true,
                "locked": true,
                "ignoreAddingToDimensionFilter": true,
                "disabled": true,
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "filters": [
                  null
                ],
                "advancedFilters": [
                  null
                ]
              }
            ],
            "property2": [
              {
                "displayName": "string",
                "isCompoundFilter": true,
                "negativeFilter": true,
                "filterType": "FILTER",
                "field": "string",
                "values": [
                  {}
                ],
                "accessibleValues": [
                  {}
                ],
                "userFilter": true,
                "allValuesAllowed": true,
                "lockedWithValues": true,
                "hidden": true,
                "favourite": true,
                "mandatory": true,
                "locked": true,
                "ignoreAddingToDimensionFilter": true,
                "disabled": true,
                "details": {
                  "property1": {},
                  "property2": {}
                },
                "filters": [
                  null
                ],
                "advancedFilters": [
                  null
                ]
              }
            ]
          },
          "parentGroup": {},
          "childrenGroupBys": [
            {}
          ]
        }
      }
    ],
    "report": "string",
    "permission": "string",
    "tzOffset": 0,
    "timezone": "string",
    "sorts": [
      {
        "type": "string",
        "key": "string",
        "order": "string",
        "additional": {
          "property1": {},
          "property2": {}
        },
        "postProjectionSort": {}
      }
    ],
    "page": {
      "page": 0,
      "size": 0,
      "skip": 0,
      "cursor": "string"
    },
    "pageForDocuments": {
      "page": 0,
      "size": 0,
      "skip": 0,
      "cursor": "string"
    },
    "sortsForDocuments": [
      {
        "type": "string",
        "key": "string",
        "order": "string",
        "additional": {
          "property1": {},
          "property2": {}
        },
        "postProjectionSort": {}
      }
    ],
    "functionScore": {
      "functions": [
        {
          "fieldName": "string",
          "origin": {},
          "scale": {},
          "type": "RANDOM_FUNCTION"
        }
      ],
      "boost": 0.1,
      "maxBoost": 0.1,
      "scoreMode": "string",
      "boostMode": "string",
      "minScore": 0.1,
      "seed": "string",
      "field": "string",
      "weight": 0.1,
      "fieldName": "string",
      "origin": {},
      "scale": {},
      "script": "string",
      "lang": "string",
      "params": {
        "property1": {},
        "property2": {}
      }
    },
    "merge": {},
    "additional": {
      "property1": "string",
      "property2": "string"
    },
    "cacheDisabled": true,
    "projectionDecorations": [
      {}
    ],
    "excludeFields": [
      {}
    ],
    "sortValues": {
      "property1": {},
      "property2": {}
    },
    "reportDateField": "string",
    "transientRequestState": {},
    "projectionsGroupBy": {},
    "filterControl": {
      "forbidden": [
        "string"
      ],
      "permitted": [
        "string"
      ]
    }
  }'

Responses

Success

Bodyapplication/json
dataobject
errorsArray of objects(Error)
metadataobject(ResponseMetadata)
Response
{ "data": {}, "errors": [ { … } ], "metadata": {} }