openapi: 3.2.0 info: title: Chatlayer Analytics Knowledge Base API version: 1.0.0 contact: name: Support url: www.sinch.com email: support@sinch.com servers: - url: https://analytics.api.chatlayer.ai description: Europe - url: https://analytics.api.prod.us-east4.gcp.chatlayer.ai description: US - url: https://analytics.api.prod.asia-south1.gcp.chatlayer.ai description: APAC - url: https://analytics.api.prod.sa-east1.gcp.chatlayer.ai description: South America security: - basicAuth: [] tags: - name: Knowledge Base paths: /v1/bots/{bot_id}/knowledge_base: get: tags: - Knowledge Base operationId: Analytics_GetKnowledgeBaseUsage parameters: - name: bot_id in: path description: Identifies the bot. required: true schema: type: string - name: version in: query description: Identifies the bot version. required: true schema: type: string - name: start_time in: query description: The starting date for the time range of the data series. required: true schema: type: string - name: end_time in: query description: The ending date for the time range of the data series, exclusive. required: true schema: type: string - name: channel_type in: query description: Filter by specific channels, multiple values separated by comma. schema: type: string - name: language in: query description: Filter by specific languages, multiple values separated by comma. schema: type: string - name: bucket in: query description: 'Time interval in which results will be grouped. Supported values are 1h,1d,1w. The interval should be smaller than the range specified in the [start_time,end_time)' schema: type: string responses: '200': description: A successful response. content: application/json: schema: $ref: '#/components/schemas/GetKnowledgeBaseResponse' summary: Analytics get knowledge base usage x-summary-source: derived /v1/bots/{bot_id}/knowledge_base/tags: get: tags: - Knowledge Base operationId: Analytics_GetKnowledgeBaseTagsInsights parameters: - name: bot_id in: path description: Identifies the bot. required: true schema: type: string - name: version in: query description: Identifies the bot version. required: true schema: type: string - name: start_time in: query description: The starting date for the time range of the data series. required: true schema: type: string - name: end_time in: query description: The ending date for the time range of the data series, exclusive. required: true schema: type: string - name: channel_type in: query description: Filter by specific channels, multiple values separated by comma. schema: type: string - name: language in: query description: Filter by specific languages, multiple values separated by comma. schema: type: string responses: '200': description: A successful response. content: application/json: schema: $ref: '#/components/schemas/GetKnowledgeBaseTagsInsightsResponse' summary: Analytics get knowledge base tags insights x-summary-source: derived /v1/teams/{team_id}/knowledge_base: get: tags: - Knowledge Base operationId: Analytics_GetTeamKnowledgeBaseUsage parameters: - name: team_id in: path description: Identifies the team. required: true schema: type: string - name: start_time in: query description: The starting date for the time range of the data series. required: true schema: type: string - name: end_time in: query description: The ending date for the time range of the data series, exclusive. required: true schema: type: string - name: bucket in: query description: 'Time interval in which results will be grouped. Supported values are 1d, 1w, 1m. The interval should be smaller than the range specified in the [start_time,end_time).' required: true schema: type: string - name: channel_type in: query description: Filter by specific channels, multiple values separated by comma. schema: type: string - name: language in: query description: Filter by specific languages, multiple values separated by comma. schema: type: string responses: '200': description: A successful response. content: application/json: schema: $ref: '#/components/schemas/GetTeamKnowledgeBaseResponse' summary: Analytics get team knowledge base usage x-summary-source: derived components: schemas: Serie: type: object properties: values: type: array items: type: integer format: int32 mean: type: integer description: The mean value. format: int32 max: type: integer description: The max value. format: int32 min: type: integer description: The min value. format: int32 sum: type: integer description: The sum of all values. format: int32 labels: type: object additionalProperties: type: string GetKnowledgeBaseResponse: type: object properties: data: $ref: '#/components/schemas/SeriesData' SeriesData: type: object properties: series: type: array items: $ref: '#/components/schemas/Serie' series_labels: type: array items: type: string x_values: type: array items: type: string GetKnowledgeBaseTagsInsightsResponse: type: object properties: data: type: array items: $ref: '#/components/schemas/KnowledgeBaseTagInsight' KnowledgeBaseTagInsight: type: object properties: tag: title: Name of the tag type: string count: title: Total count of these tags type: integer format: int32 rank: title: Ordering position for this tag. Starts at 1 type: integer format: int32 GetTeamKnowledgeBaseResponse: type: object properties: data: $ref: '#/components/schemas/SeriesData' securitySchemes: basicAuth: type: http scheme: basic description: Generate your access token on the [Chatlayer platform](https://app.chatlayer.ai/settings/api-access/tokens). externalDocs: description: Learn more url: https://developers.sinch.com/docs/chatlayer-analytics/ x-original-swagger-version: '2.0'