Skip to main content
GET
/
backend
/
reports
/
{orgId}
/
chats
/
satisfaction
curl --location --request GET 'https://api-v2.opencopilot.so/backend/reports/chats/satisfaction?startDate=2023-01-01T00:00:00Z&endDate=2023-12-31T23:59:59Z'
{
  "average_satisfaction": 4.5
}
This endpoint returns the average satisfaction score for chat sessions based on the provided query parameters.

Authentication

Authorization
string
required
Bearer token for authentication

Path Parameters

orgId
string
required
The ID of the organization to filter the results

Query Parameters

startDate
string
The start date for the date range filter (ISO 8601 format)
endDate
string
The end date for the date range filter (ISO 8601 format)

Response

average_satisfaction
number
The average satisfaction score for the chat sessions
curl --location --request GET 'https://api-v2.opencopilot.so/backend/reports/chats/satisfaction?startDate=2023-01-01T00:00:00Z&endDate=2023-12-31T23:59:59Z'
{
  "average_satisfaction": 4.5
}