Analytics apiQueryExport

Export Semantic Threads Query Results

POST
/query/semantic-threads/export

Authorization

AuthorizationRequiredBearer <token>

The API key for an API integration. For more details, see authentication documentation

In: header

Request Body

application/jsonRequired

Note: The maximum size of the request body is 2 MB.

querystring
selectarray<SemanticThreadSelection>
groupByarray<SemanticThreadGroupBy>
whereSemanticThreadFilter
orderByarray<SemanticThread OrderBy Schema>
notesstring

Notes are not persisted, but may be useful for your debugging purposes

Maximum length: 80

Response Body

CSV file containing query results

responseRequiredfile
Format: "binary"
export type Response = string;
 
curl -X POST "https://api.analytics.inkeep.com/query/semantic-threads/export" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "string",
    "select": [
      {
        "type": "aggregation",
        "aggregation": "sum",
        "field": "id",
        "path": [
          "string"
        ]
      }
    ],
    "groupBy": [
      {
        "field": "id",
        "path": [
          "string"
        ],
        "includeInSelect": true
      }
    ],
    "where": {
      "condition": {
        "field": "id",
        "operator": "eq",
        "value": "string"
      }
    },
    "orderBy": [
      {
        "field": "id",
        "direction": "asc"
      }
    ],
    "notes": "Count of chat sessions with documentation gaps by integration"
  }'
"string"