This PR adds a new standalone `GET /api/v2/accounts/:id/reports/outgoing_messages_count` endpoint that returns outgoing message counts grouped by agent, team, inbox, or label.
22 lines
608 B
YAML
22 lines
608 B
YAML
type: array
|
|
description: Outgoing messages count report grouped by entity (agent, team, inbox, or label).
|
|
items:
|
|
type: object
|
|
properties:
|
|
id:
|
|
type: number
|
|
description: The ID of the grouped entity (agent, team, inbox, or label).
|
|
name:
|
|
type: string
|
|
description: The name of the grouped entity.
|
|
outgoing_messages_count:
|
|
type: number
|
|
description: The total number of outgoing messages for this entity in the given time range.
|
|
example:
|
|
- id: 1
|
|
name: Agent One
|
|
outgoing_messages_count: 42
|
|
- id: 2
|
|
name: Agent Two
|
|
outgoing_messages_count: 18
|