# Conversation Insights
Retrieve conversation volume and handoff counts for a business.
Returns how many conversations the AI agent handled over a date range, and how many are currently handed to the business awaiting a reply. Counts are per conversation, not per message. These are the same figures the business sees in their own agent summaries. This endpoint allows 1,000 requests per hour for each app and `entity_id` pair. Once that is exhausted, further requests return `429` until the limit resets.
## Base URL
| URL | Description |
|-----|-------------|
| https://api.facebook.com/{entity_id}/insights/conversations | |
## Authorization
This API requires:
any of the following
- Capability: bizai_wa_enterprise_api_3p_access
- Permission: whatsapp_business_messaging
## APIs
| Method | Endpoint |
|--------|----------|
| GET | [/](#get) |
<jumplink id="get"></jumplink>
## GET /
Get conversation insights
Retrieve conversation and handoff counts for the specified date range
### Header Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| X-API-Version | "2.0.0" | | |
### Path Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| entity_id | string | ✓ | The business asset whose conversation insights to return. |
### Query Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| start_date | string | ✓ | First day to include, as YYYY-MM-DD in the business time zone. The boundary is inclusive. |
| end_date | string | ✓ | Last day to include, as YYYY-MM-DD in the business time zone. The boundary is inclusive. start_date and end_date may span at most 90 days, counting both the first and last day. |
| metrics | array of One of "ai_handoffs", "ai_threads" | | Which metrics to return. Defaults to all of them. Requesting only what you need is worthwhile: each metric costs a separate scan of the business's conversations. |
### Responses
**200**
The conversation insights for the requested range
**Content Type**: `application/json`
**Schema**: object
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| data | array of [BizAIOmniChannelConversationInsights](#bizaiomnichannelconversationinsights) | ✓ | A single row covering the requested range. An array so a future per-day breakdown does not break callers. |
**400**
Bad request
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**404**
Not found
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**401**
Unauthorized
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**403**
Forbidden
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**429**
Too many requests
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**500**
Server error
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
# Components
## Schemas
<jumplink id="bizaiomnichannelconversationinsightsmetric"></jumplink>
### BizAIOmniChannelConversationInsightsMetric
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| count | integer | ✓ | The number of conversations this metric counts. What it counts, and whether the requested date range applies to it, is described on the metric itself. |
<jumplink id="bizaiomnichannelconversationinsights"></jumplink>
### BizAIOmniChannelConversationInsights
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| ai_threads | [BizAIOmniChannelConversationInsightsMetric](#bizaiomnichannelconversationinsightsmetric) | | Conversations the AI agent replied in at least once between start_date and end_date, counted once however many messages each contains. Present only when the metric was requested. |
| ai_handoffs | [BizAIOmniChannelConversationInsightsMetric](#bizaiomnichannelconversationinsightsmetric) | | Conversations currently handed from the AI agent to the business and still awaiting a business reply. This is a snapshot of the present moment, not a count over the requested range: it is the same figure whatever start_date and end_date you send. A conversation drops out of it once the business replies. Present only when the metric was requested. |
<jumplink id="standarderror"></jumplink>
### StandardError
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| detail | string | ✓ | |
| status | integer | | |
| title | string | ✓ | |
| type | string | | |
## Authentication
| Method | How to send it |
|--------|----------------|
| Authorization header | `Authorization: Bearer {access-token}` |
### Global Authentication Requirements
All endpoints require: `Authorization: Bearer {access-token}`