Analytics apiQuery
Query Feedback
Copy page
AuthorizationBearer <token>
The API key for an API integration. For more details, see authentication documentation
In: header
Note: The maximum size of the request body is 2 MB.
select?array<FeedbackSelection>
groupBy?array<FeedbackGroupBy>
where?FeedbackFilter
orderBy?array<Feedback OrderBy Schema>
notes?string
Notes are not persisted, but may be useful for your debugging purposes
Length
length <= 80
Response Body
curl -X POST "https://api.analytics.inkeep.com/query/feedback" \
-H "Content-Type: application/json" \
-d '{}'
{
"status": "ok",
"data": {
"result": [
{
"id": "string",
"type": "positive",
"messageId": "string",
"createdAt": null,
"updatedAt": null,
"organizationId": "string",
"reasons": [
{
"label": "string",
"details": "string"
}
],
"sources": [
{
"type": "positive",
"title": "string",
"url": "string"
}
],
"details": "string",
"properties": {},
"userProperties": {
"id": "string",
"identificationType": "COOKIED",
"userId": "string",
"supportAgentName": "string",
"userType": "string"
},
"conversationId": "string",
"projectId": "string",
"integrationId": "string",
"sum": 0,
"count": 0,
"avg": 0,
"min": 0,
"max": 0,
"id_hour": "string",
"id_day": "string",
"id_week": "string",
"id_month": "string",
"type_hour": "string",
"type_day": "string",
"type_week": "string",
"type_month": "string",
"messageId_hour": "string",
"messageId_day": "string",
"messageId_week": "string",
"messageId_month": "string",
"createdAt_hour": "string",
"createdAt_day": "string",
"createdAt_week": "string",
"createdAt_month": "string",
"updatedAt_hour": "string",
"updatedAt_day": "string",
"updatedAt_week": "string",
"updatedAt_month": "string",
"organizationId_hour": "string",
"organizationId_day": "string",
"organizationId_week": "string",
"organizationId_month": "string",
"reasons_hour": "string",
"reasons_day": "string",
"reasons_week": "string",
"reasons_month": "string",
"sources_hour": "string",
"sources_day": "string",
"sources_week": "string",
"sources_month": "string",
"details_hour": "string",
"details_day": "string",
"details_week": "string",
"details_month": "string",
"properties_hour": "string",
"properties_day": "string",
"properties_week": "string",
"properties_month": "string",
"userProperties_hour": "string",
"userProperties_day": "string",
"userProperties_week": "string",
"userProperties_month": "string",
"conversationId_hour": "string",
"conversationId_day": "string",
"conversationId_week": "string",
"conversationId_month": "string",
"projectId_hour": "string",
"projectId_day": "string",
"projectId_week": "string",
"projectId_month": "string",
"integrationId_hour": "string",
"integrationId_day": "string",
"integrationId_week": "string",
"integrationId_month": "string",
"sum_id": 0,
"sum_type": 0,
"sum_messageId": 0,
"sum_createdAt": 0,
"sum_updatedAt": 0,
"sum_organizationId": 0,
"sum_reasons": 0,
"sum_sources": 0,
"sum_details": 0,
"sum_properties": 0,
"sum_userProperties": 0,
"sum_conversationId": 0,
"sum_projectId": 0,
"sum_integrationId": 0,
"count_id": 0,
"count_type": 0,
"count_messageId": 0,
"count_createdAt": 0,
"count_updatedAt": 0,
"count_organizationId": 0,
"count_reasons": 0,
"count_sources": 0,
"count_details": 0,
"count_properties": 0,
"count_userProperties": 0,
"count_conversationId": 0,
"count_projectId": 0,
"count_integrationId": 0,
"avg_id": 0,
"avg_type": 0,
"avg_messageId": 0,
"avg_createdAt": 0,
"avg_updatedAt": 0,
"avg_organizationId": 0,
"avg_reasons": 0,
"avg_sources": 0,
"avg_details": 0,
"avg_properties": 0,
"avg_userProperties": 0,
"avg_conversationId": 0,
"avg_projectId": 0,
"avg_integrationId": 0,
"min_id": 0,
"min_type": 0,
"min_messageId": 0,
"min_createdAt": 0,
"min_updatedAt": 0,
"min_organizationId": 0,
"min_reasons": 0,
"min_sources": 0,
"min_details": 0,
"min_properties": 0,
"min_userProperties": 0,
"min_conversationId": 0,
"min_projectId": 0,
"min_integrationId": 0,
"max_id": 0,
"max_type": 0,
"max_messageId": 0,
"max_createdAt": 0,
"max_updatedAt": 0,
"max_organizationId": 0,
"max_reasons": 0,
"max_sources": 0,
"max_details": 0,
"max_properties": 0,
"max_userProperties": 0,
"max_conversationId": 0,
"max_projectId": 0,
"max_integrationId": 0,
"sum_properties.userId": 0,
"sum_properties.supportAgentName": 0,
"sum_userProperties.userId": 0,
"sum_userProperties.supportAgentName": 0,
"count_properties.userId": 0,
"count_properties.supportAgentName": 0,
"count_userProperties.userId": 0,
"count_userProperties.supportAgentName": 0,
"countDistinct_properties.userId": 0,
"countDistinct_properties.supportAgentName": 0,
"countDistinct_userProperties.userId": 0,
"countDistinct_userProperties.supportAgentName": 0,
"avg_properties.userId": 0,
"avg_properties.supportAgentName": 0,
"avg_userProperties.userId": 0,
"avg_userProperties.supportAgentName": 0,
"min_properties.userId": 0,
"min_properties.supportAgentName": 0,
"min_userProperties.userId": 0,
"min_userProperties.supportAgentName": 0,
"max_properties.userId": 0,
"max_properties.supportAgentName": 0,
"max_userProperties.userId": 0,
"max_userProperties.supportAgentName": 0,
"properties.userId": "string",
"properties.supportAgentName": "string",
"userProperties.userId": "string",
"userProperties.supportAgentName": "string"
}
],
"total": 0,
"pageSize": 0,
"count": 0
}
}
{
"title": "Bad Request",
"status": 400,
"detail": "Bad Request",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "bad_request",
"error": {
"code": "bad_request",
"message": "Bad Request"
}
}
{
"title": "Unauthorized",
"status": 401,
"detail": "Unauthorized",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "unauthorized",
"error": {
"code": "unauthorized",
"message": "Unauthorized"
}
}
{
"title": "Forbidden",
"status": 403,
"detail": "Forbidden",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "forbidden",
"error": {
"code": "forbidden",
"message": "Forbidden"
}
}
{
"title": "Unprocessable Entity",
"status": 422,
"detail": "Unprocessable Entity",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "unprocessable_entity",
"error": {
"code": "unprocessable_entity",
"message": "Unprocessable Entity"
}
}
{
"title": "Internal Server Error",
"status": 500,
"detail": "Internal Server Error",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "internal_server_error",
"error": {
"code": "internal_server_error",
"message": "Internal Server Error"
}
}