Skip to main content
GET
/
api
/
v2
/
accounts
/
{account_id}
/
reports
/
first_response_time_distribution
Get first response time distribution by channel
curl --request GET \
  --url https://app.chatwoot.com/api/v2/accounts/{account_id}/reports/first_response_time_distribution \
  --header 'api_access_token: <api-key>'
{
  "Channel::WebWidget": {
    "0-1h": 150,
    "1-4h": 80,
    "4-8h": 45,
    "8-24h": 30,
    "24h+": 15
  },
  "Channel::Api": {
    "0-1h": 75,
    "1-4h": 40,
    "4-8h": 20,
    "8-24h": 10,
    "24h+": 5
  }
}

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

account_id
integer
required

The numeric ID of the account

Query Parameters

since
string

The timestamp from where report should start (Unix timestamp).

until
string

The timestamp from where report should stop (Unix timestamp).

Response

Success

First response time distribution report grouped by channel type. Shows the count of conversations with first response times in different time buckets.

{key}
object

First response time distribution for a specific channel type (e.g., Channel::WebWidget, Channel::Api)