List AI Sales Agent activities
curl --request GET \
--url https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "01a10513-d177-79cd-959f-f523bcc9b30b",
"ai_sdr_id": "01a10513-d177-79cd-959f-f525fb256773",
"workspace_id": "01a10513-d177-79cd-959f-f52733697960",
"action_type": "create_campaign",
"action_status": "pending",
"timestamp_created": "2026-10-04T04:02:27.319Z",
"timestamp_updated": "2026-10-04T04:02:27.319Z",
"action_payload": {},
"action_output": {},
"email_id": "01a10513-d177-79cd-959f-f528f3dfc185",
"approved_by": "01a10513-d177-79cd-959f-f52a5d1f16f8",
"approved_at": "2026-10-04T04:02:27.319Z",
"rejected_by": "01a10513-d177-79cd-959f-f52c98bae806",
"rejected_at": "2026-10-04T04:02:27.319Z",
"rejection_reason": "Not aligned with current strategy",
"ai_reasoning": "This lead matches the ICP criteria and has shown interest",
"ai_confidence": 0.85,
"result": {},
"error_message": "Failed to create campaign: Invalid email list",
"error_code": "insufficient_credits",
"timestamp_executed": "2026-10-04T04:02:27.319Z",
"timestamp_completed": "2026-10-04T04:02:27.319Z"
}
],
"next_starting_after": "01a10514-2dc0-76e8-b06d-b42b1279f9a0"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}AI Sales Agent
List AI Sales Agent activities
List all activities for the AI Sales Agent.
Requires one of the following scopes: ai_sdr:read, ai_sdr:all, all:read, all:all
GET
/
api
/
v2
/
ai-agents
/
sales
/
{id}
/
activities
List AI Sales Agent activities
curl --request GET \
--url https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/ai-agents/sales/{id}/activities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "01a10513-d177-79cd-959f-f523bcc9b30b",
"ai_sdr_id": "01a10513-d177-79cd-959f-f525fb256773",
"workspace_id": "01a10513-d177-79cd-959f-f52733697960",
"action_type": "create_campaign",
"action_status": "pending",
"timestamp_created": "2026-10-04T04:02:27.319Z",
"timestamp_updated": "2026-10-04T04:02:27.319Z",
"action_payload": {},
"action_output": {},
"email_id": "01a10513-d177-79cd-959f-f528f3dfc185",
"approved_by": "01a10513-d177-79cd-959f-f52a5d1f16f8",
"approved_at": "2026-10-04T04:02:27.319Z",
"rejected_by": "01a10513-d177-79cd-959f-f52c98bae806",
"rejected_at": "2026-10-04T04:02:27.319Z",
"rejection_reason": "Not aligned with current strategy",
"ai_reasoning": "This lead matches the ICP criteria and has shown interest",
"ai_confidence": 0.85,
"result": {},
"error_message": "Failed to create campaign: Invalid email list",
"error_code": "insufficient_credits",
"timestamp_executed": "2026-10-04T04:02:27.319Z",
"timestamp_completed": "2026-10-04T04:02:27.319Z"
}
],
"next_starting_after": "01a10514-2dc0-76e8-b06d-b42b1279f9a0"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
AI Sales Agent ID
Example:
"01a10514-1cbb-7567-9a05-6be369690c04"
Query Parameters
The number of items to return
Required range:
1 <= x <= 100Example:
10
The ID of the last item in the previous page - used for pagination. You can use the value of the next_starting_after field from the previous response.
Example:
"01956fbd-0eb1-72db-a565-82977a586084"
Filter by activity status (array of statuses)
Available options:
pending, approved, rejected, in_progress, completed, failed Example:
["pending", "in_progress"]
Filter by action type (array of types)
Available options:
create_campaign, edit_campaign, stop_campaign, pause_campaign, enrich_leads, push_lead, recommend_lead, warning, initial_setup_scrape, initial_setup_campaigns, initial_setup_enrich, reply_received, opportunity_received, imported_leads Example:
[
"initial_setup_scrape",
"initial_setup_campaigns"
]
Exclude activities the AI Sales Agent live feed hides (warnings and delivered lead recommendations) so pagination stays accurate. Defaults to false.
Example:
true