Skip to main content

GetStatistics retrieves agent status statistics.

GET 

/api/v1/voice/agents/:agentId/status/statistics

Returns time spent in each status for the specified period. Useful for productivity reporting and workforce management.

Parameters

  • agent_id: Required, agent to analyze
  • start_time: Required, period start (ISO 8601)
  • end_time: Required, period end (ISO 8601)

Response

  • total_seconds: Total time in period
  • available_seconds: Time in available status
  • paused_seconds: Time in paused statuses
  • offline_seconds: Time in offline status
  • by_status: Breakdown by individual status

Errors

  • NOT_FOUND: Agent does not exist
  • INVALID_ARGUMENT: Invalid time range
  • PERMISSION_DENIED: Caller lacks voice:agent:read permission

Request

Responses

A successful response.