Analytics apiQuery

Query

POST
/query/{table}
/query/semantic_threads_view

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

The API key for a Web integration

In: header

Authorization
Required
Bearer <token>

The API key for an API integration

In: header

Request Body

application/jsonRequired

selectarray<Any properties in object, object, object>

groupByarray<Any properties in string, object>

whereAny properties in object, object, object

orderByarray<object>

Path Parameters

table
Required
string

Minimum length: 3
curl -X POST "https://api.analytics.inkeep.com/query/semantic_threads_view" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "select": [
      {
        "aggregation": "sum",
        "field": "id"
      }
    ],
    "groupBy": [
      "string"
    ],
    "where": {
      "condition": {
        "field": "id",
        "operator": "eq",
        "value": "string"
      }
    },
    "orderBy": [
      {
        "field": "id",
        "direction": "asc"
      }
    ]
  }'

Query results

{
  "status": "ok",
  "data": {
    "result": [
      {
        "id": "string",
        "messageIds": [
          "string"
        ],
        "messagesCount": null,
        "organizationId": "string",
        "question": "string",
        "questionLength": null,
        "answer": "string",
        "isOnTopic": null,
        "isClear": null,
        "isDocumented": null,
        "isFeatureSupported": null,
        "isAnswerConfident": null,
        "gapSummary": null,
        "subject": null,
        "category": null,
        "languages": null,
        "firstPartyEntities": null,
        "thirdPartyEntities": null,
        "emotion": null,
        "sentiment": null,
        "questionType": null,
        "projectId": "string",
        "integrationId": "string",
        "firstMessageTime": "2019-08-24T14:15:22Z",
        "lastMessageTime": "2019-08-24T14:15:22Z",
        "lastUpdated": "2019-08-24T14:15:22Z",
        "hasPositiveFeedback": true,
        "hasNegativeFeedback": true,
        "conversationIds": [
          "string"
        ],
        "areAIAnnotationsVerified": null,
        "isInitialQuestionAnswer": true
      }
    ],
    "total": 0,
    "pageSize": 0,
    "count": 0
  }
}