---
title: "Get AI Sales Agent analytics"
method: GET
path: "/api/v2/ai-agents/sales/{id}/analytics"
tags: ["AISalesAgent"]
---

# Get AI Sales Agent analytics

`GET /api/v2/ai-agents/sales/{id}/analytics`

## Request

- Base URL: `https://api.instantly.ai`
- URL: `https://api.instantly.ai/api/v2/ai-agents/sales/{id}/analytics`
- Auth: HTTP bearer

Get daily analytics (leads found, emails sent, replies, opportunities, total email activity) merged across all campaigns of the AI Sales Agent. When `start_date` and `end_date` are omitted, the response covers all-time data.


Requires one of the following scopes: `ai_sdr:read`, `ai_sdr:all`, `all:read`, `all:all`

## Path parameters

- `id` string, uuid, required

## Query parameters

- `start_date` string, date-time
- `end_date` string, date-time

## Response `200`

Merged analytics data

- object: Merged daily analytics for every campaign of the AI Sales Agent
  - `total_email_activity_per_day` object[]: Daily total email activity data points formatted for charts (array of {x: date, y: value})
    - `x` string, date-time
    - `y` number
  - `replies_per_day` object[]: Daily replies data points formatted for charts (array of {x: date, y: value})
    - `x` string, date-time
    - `y` number
  - `leads_found_per_day` object[]: Daily leads found data points formatted for charts (array of {x: date, y: value})
    - `x` string, date-time
    - `y` number
  - `opportunities_per_day` object[]: Daily opportunities data points formatted for charts (array of {x: date, y: value})
    - `x` string, date-time
    - `y` number
  - `totals` object: Totals over the selected date range
    - `total_sent` number
    - `replies` number
    - `opportunities` number
    - `opportunities_amount` number
    - `total_email_activity` number
    - `leads_found` number

## Other responses

- `400`: The request is invalid (e.g. missing required fields, invalid field values, or an invalid state for the operation)
- `401`: This request is unauthorized (either the Authorization header is missing or invalid, or the API key has been revoked)
- `402`: This request cannot be fulfilled because the workspace does not have an active paid plan
- `404`: The requested resource was not found
- `429`: You have exceeded the rate limit. Please check the rate limit docs for more information.

## Changes

- **2026-11-03** `c781051105a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/instantly/apis/api-explorer/changes/api/v2/ai-agents/sales/:id/analytics/get.md)

---

[API](https://skmtc.dev/instantly/apis/api-explorer.md) - [All operations](https://skmtc.dev/instantly/apis/api-explorer/llms.txt) - [OpenAPI document](https://skmtc.dev/instantly/apis/api-explorer/revisions/adcd5b3299da?raw)
