Insights

Read an agent's overview, analytics, and the questions it could not answer.

GET
/api/v1/agents/{id}/overview

One call answering "how is my agent doing": performance, conversations per channel (channels), demand, and items needing attention over the period (7d, 30d, or 90d). Requires the read:analytics permission.

Authorization

BearerAuth read:analytics
AuthorizationBearer <token>

In: header

Scope: read:analytics

Path Parameters

id*string

Query Parameters

period?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents/string/overview"
{
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
GET
/api/v1/agents/{id}/analytics

An outcome summary (how many conversations the agent resolved on its own, handed to a teammate, or left without a reply, plus satisfaction and reply times), top questions, unanswered queries, satisfaction ratings, and visitor locations for the period. Playground test chats are not counted. On plans without advanced analytics the advanced sections are empty and advancedAnalytics is false. Requires the read:analytics permission.

Authorization

BearerAuth read:analytics
AuthorizationBearer <token>

In: header

Scope: read:analytics

Path Parameters

id*string

Query Parameters

period?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents/string/analytics"
{
  "period": "7d",
  "advancedAnalytics": true,
  "summary": {
    "startDate": "string",
    "endDate": "string",
    "conversations": 0,
    "outcomes": {
      "ai_confirmed": 0,
      "ai_assumed": 0,
      "team_answered": 0,
      "team_waiting": 0,
      "team_no_reply": 0,
      "ai_no_reply": 0,
      "ai_rated_low": 0,
      "in_progress": 0
    },
    "aiResolutionRate": 0,
    "handoffRate": 0,
    "satisfaction": {
      "avg": 0,
      "satisfiedRate": 0,
      "responses": 0
    },
    "medianAiReplyMs": 0,
    "medianFirstTeammateReplyMs": 0
  },
  "conversationInsights": {
    "labelled": 0,
    "pending": 0,
    "intents": [
      {
        "intent": "inquiry",
        "count": 0
      }
    ],
    "languages": [
      {
        "language": "string",
        "count": 0
      }
    ],
    "sentiment": {
      "positive": 0,
      "neutral": 0,
      "negative": 0
    }
  },
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
GET
/api/v1/agents/{id}/unanswered-questions

Questions the agent could not answer in the period: the most actionable training signal. Returns 403 with the required plan on plans without advanced analytics. Requires the read:analytics permission.

Authorization

BearerAuth read:analytics
AuthorizationBearer <token>

In: header

Scope: read:analytics

Path Parameters

id*string

Query Parameters

period?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents/string/unanswered-questions"
{
  "period": "7d",
  "items": [
    {
      "content": "string",
      "createdAt": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
GET
/api/v1/agents/{id}/report

Weekly, monthly, or custom performance report with the same numbers as the dashboard Analytics page, compared with the period of the same length just before it (headline.previous, headline.changes). Weeks start on Monday; days are read in timeZone (default UTC). Satisfaction, top and unanswered questions need a plan with advanced analytics. Requires the read:analytics permission.

Authorization

BearerAuth read:analytics
AuthorizationBearer <token>

In: header

Scope: read:analytics

Path Parameters

id*string

Query Parameters

period?string
startDate?string
endDate?string
timeZone?string
channel?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents/string/report"
{
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}