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": "01a08b36-6a3c-75f7-9fe7-c8126769608a",
"ai_sdr_id": "01a08b36-6a3c-75f7-9fe7-c814bf1205bf",
"workspace_id": "01a08b36-6a3c-75f7-9fe7-c816e9ac7307",
"action_type": "create_campaign",
"action_status": "pending",
"timestamp_created": "2026-09-10T12:06:34.300Z",
"timestamp_updated": "2026-09-10T12:06:34.300Z",
"action_payload": {},
"action_output": {},
"email_id": "01a08b36-6a3c-75f7-9fe7-c8171d77ea8c",
"approved_by": "01a08b36-6a3c-75f7-9fe7-c81962446202",
"approved_at": "2026-09-10T12:06:34.300Z",
"rejected_by": "01a08b36-6a3c-75f7-9fe7-c81bfd2a91d1",
"rejected_at": "2026-09-10T12:06:34.300Z",
"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-09-10T12:06:34.300Z",
"timestamp_completed": "2026-09-10T12:06:34.300Z"
}
],
"next_starting_after": "01a08b36-c015-72d8-a135-b74e9dad7f5a"
}{
"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": "01a08b36-6a3c-75f7-9fe7-c8126769608a",
"ai_sdr_id": "01a08b36-6a3c-75f7-9fe7-c814bf1205bf",
"workspace_id": "01a08b36-6a3c-75f7-9fe7-c816e9ac7307",
"action_type": "create_campaign",
"action_status": "pending",
"timestamp_created": "2026-09-10T12:06:34.300Z",
"timestamp_updated": "2026-09-10T12:06:34.300Z",
"action_payload": {},
"action_output": {},
"email_id": "01a08b36-6a3c-75f7-9fe7-c8171d77ea8c",
"approved_by": "01a08b36-6a3c-75f7-9fe7-c81962446202",
"approved_at": "2026-09-10T12:06:34.300Z",
"rejected_by": "01a08b36-6a3c-75f7-9fe7-c81bfd2a91d1",
"rejected_at": "2026-09-10T12:06:34.300Z",
"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-09-10T12:06:34.300Z",
"timestamp_completed": "2026-09-10T12:06:34.300Z"
}
],
"next_starting_after": "01a08b36-c015-72d8-a135-b74e9dad7f5a"
}{
"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:
"01a08b36-b277-7624-9f8a-290035be2eba"
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