Skip to main content
GET
/
backend
/
reports
/
:orgId
/
agents
/
response-times
curl --location --request GET 'https://api-v2.opencopilot.so/backend/reports/org123/agents/response-times?startDate=2023-01-01T00:00:00Z&endDate=2023-12-31T23:59:59Z' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "session_id": "session123",
    "avg_response_time": 15.5
  },
  {
    "session_id": "session456",
    "avg_response_time": 8.2
  },
  {
    "session_id": "session789",
    "avg_response_time": 22.7
  }
]
This endpoint provides data on the average response times for agents in chat sessions. It helps analyze how quickly agents are responding to customer messages, which is crucial for assessing customer service efficiency.

Authentication

Authorization
string
required
Bearer token for authentication

Path Parameters

orgId
string
required
The unique identifier of the organization

Query Parameters

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

Response

The response structure will depend on the implementation of the getAgentResponseTimes method in the ReportsService.
curl --location --request GET 'https://api-v2.opencopilot.so/backend/reports/org123/agents/response-times?startDate=2023-01-01T00:00:00Z&endDate=2023-12-31T23:59:59Z' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "session_id": "session123",
    "avg_response_time": 15.5
  },
  {
    "session_id": "session456",
    "avg_response_time": 8.2
  },
  {
    "session_id": "session789",
    "avg_response_time": 22.7
  }
]