Skip to main content
GET
Get Analytics

Get Analytics

Retrieve call analytics and task status for your organization. Provides insights into call outcomes, success rates, average durations, and task execution summaries. Optionally filter by a specific space using the space_token query parameter.
Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.

Headers

You can get the Org-Handle by hitting the Get All Organizations API. The domain_handle field in the response is your Org-Handle.

Query Parameters

If space_token is provided, analytics are scoped to that space only. If not provided, analytics aggregate across all contact spaces in the organization.

Response Fields

Analytics Data Fields

Task Status Breakdown Fields


Common Error Codes

Code Examples

Best Practices

  1. Space Scoping: Use the space_token filter to get analytics for individual campaigns or spaces
  2. Success Rate: Calculate success rate as completed_calls / total_calls * 100 for performance tracking
  3. Task Breakdown: Monitor task_status_breakdown to detect stuck or failed tasks requiring attention
  4. Scheduled Reports: Call this endpoint on a schedule to build trend dashboards
  5. Org-Handle: Ensure the correct organization handle is included for accurate scoping
  6. Security: Keep API tokens secure and rotate them regularly

Authorizations

Authorization
string
header
required

Format: Token

Headers

Org-Handle
string
required

Organization domain handle

Example:

"unpod.tv"

Query Parameters

space_token
string
Example:

"8KZAMRAHSXXXXXXMAYNASMJC"

Response

Analytics data