# Chatlayer Analytics API

Version: 1.0.0

## Servers

Europe
```
https://analytics.api.chatlayer.ai
```

US
```
https://analytics.api.prod.us-east4.gcp.chatlayer.ai
```

APAC
```
https://analytics.api.prod.asia-south1.gcp.chatlayer.ai
```

South America
```
https://analytics.api.prod.sa-east1.gcp.chatlayer.ai
```

## Security

### basicAuth

Generate your access token on the [Chatlayer platform](https://app.chatlayer.ai/settings/api-access/tokens).

Type: http
Scheme: basic

## Download OpenAPI description

[Chatlayer Analytics API](https://developers.sinch.com/_bundle/docs/chatlayer-analytics/api-reference/chatlayer-analytics.yaml)

## Apps

### Analytics_ListAppIntegrationsLogs

 - [GET /v1/apps/{app_id}/logs/stream](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/apps/analytics_listappintegrationslogs.md)

## Conversations

### Get conversation analytics

 - [GET /v1/bots/{bot_id}/conversations](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/conversations/analytics_getconversations.md)

### Analytics_GetConversationsInsights

 - [GET /v1/bots/{bot_id}/conversations/insights](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/conversations/analytics_getconversationsinsights.md)

### Analytics_GetConversationFlow

 - [GET /v1/bots/{bot_id}/conversations/{conversation_id}/flow](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/conversations/analytics_getconversationflow.md)

### Analytics_GetTeamConversationsUsage

 - [GET /v1/teams/{team_id}/conversations](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/conversations/analytics_getteamconversationsusage.md)

## Events

### Analytics_GetEventAttributeValues

 - [POST /v1/bots/{bot_id}/events/attributes/{attribute_key}/values](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_geteventattributevalues.md)

### Analytics_ListEventDefinitions

 - [GET /v1/bots/{bot_id}/events/definitions](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_listeventdefinitions.md)

### Analytics_CreateEventDefinition

 - [POST /v1/bots/{bot_id}/events/definitions](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_createeventdefinition.md)

### Analytics_ComputeEventsFunnel

 - [POST /v1/bots/{bot_id}/events/funnel](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_computeeventsfunnel.md)

### Analytics_ListEvents

 - [GET /v1/bots/{bot_id}/events/stream](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_listevents.md)

### Analytics_ListEventsWithFilters

 - [POST /v1/bots/{bot_id}/events/stream](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_listeventswithfilters.md)

### Analytics_TrackEvent

 - [POST /v1/bots/{bot_id}/events/track](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_trackevent.md)

### Analytics_GetTeamEvents

 - [GET /v1/teams/{team_id}/events](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_getteamevents.md)

### Analytics_ListTeamEventDefinitions

 - [GET /v1/teams/{team_id}/events/definitions](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/events/analytics_listteameventdefinitions.md)

## Flows

### Analytics_GetFlows

 - [GET /v1/bots/{bot_id}/flows](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/flows/analytics_getflows.md)

### Analytics_ComputeFlowFunnel

 - [POST /v1/bots/{bot_id}/flows/funnel](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/flows/analytics_computeflowfunnel.md)

### Analytics_GetFlowStepDetails

 - [GET /v1/bots/{bot_id}/flows/{step_id}](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/flows/analytics_getflowstepdetails.md)

### Analytics_GetFlowStepEdges

 - [GET /v1/bots/{bot_id}/flows/{step_id}/edges](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/flows/analytics_getflowstepedges.md)

## Intents

### Get most used intents

 - [GET /v1/bots/{bot_id}/intents](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/intents/analytics_getintents.md)

### Analytics_GetIntentInsights

 - [GET /v1/bots/{bot_id}/intents/insights](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/intents/analytics_getintentinsights.md)

## KnowledgeBase

### Analytics_GetKnowledgeBaseUsage

 - [GET /v1/bots/{bot_id}/knowledge_base](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/knowledgebase/analytics_getknowledgebaseusage.md)

### Analytics_GetKnowledgeBaseTagsInsights

 - [GET /v1/bots/{bot_id}/knowledge_base/tags](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/knowledgebase/analytics_getknowledgebasetagsinsights.md)

### Analytics_GetTeamKnowledgeBaseUsage

 - [GET /v1/teams/{team_id}/knowledge_base](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/knowledgebase/analytics_getteamknowledgebaseusage.md)

## Messages

### Get message analytics

 - [GET /v1/bots/{bot_id}/messages](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/messages/analytics_getmessages.md)

## Subscriptions

### Analytics_ListSubscriptions

 - [GET /v1/bots/{bot_id}/subscriptions](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/subscriptions/analytics_listsubscriptions.md)

### Analytics_CreateSubscription

 - [POST /v1/bots/{bot_id}/subscriptions](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/subscriptions/analytics_createsubscription.md)

### Analytics_DeleteSubscription

 - [DELETE /v1/bots/{bot_id}/subscriptions/{subscription_id}](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/subscriptions/analytics_deletesubscription.md)

## Users

### Get user analytics

 - [GET /v1/bots/{bot_id}/users](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/users/analytics_getusers.md)

### Get user activity by day of week and time of day

 - [GET /v1/bots/{bot_id}/users/activity](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/users/analytics_getuseractivity.md)

## Analytics

### Check connectivity

 - [POST /v1/echo](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/analytics/analytics_echo.md)

## Voice

### Analytics_GetVoiceAnalytics

 - [GET /v1/teams/{team_id}/voice_minutes](https://developers.sinch.com/docs/chatlayer-analytics/api-reference/chatlayer-analytics/voice/analytics_getvoiceanalytics.md)

