Update an AI Sales Agent
curl --request PATCH \
--url https://api.instantly.ai/api/v2/ai-agents/sales/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Enterprise Outreach Agent"
}
'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/sales/{id}"
payload = { "name": "Enterprise Outreach Agent" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Enterprise Outreach Agent'})
};
fetch('https://api.instantly.ai/api/v2/ai-agents/sales/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.instantly.ai/api/v2/ai-agents/sales/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Enterprise Outreach Agent\"\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/ai-agents/sales/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Enterprise Outreach Agent'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/ai-agents/sales/{id}"
payload := strings.NewReader("{\n \"name\": \"Enterprise Outreach Agent\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "01a1f0d3-24df-76c8-837c-c00b589ca593",
"workspace_id": "01a1f0d3-24df-76c8-837c-c00c582b76cb",
"name": "Enterprise Outreach Agent",
"status": 1,
"initial_scrape_ready": false,
"timestamp_created": "2026-11-18T22:42:11.807Z",
"timestamp_updated": "2026-11-18T22:42:11.807Z",
"description": "Targets enterprise companies in tech sector",
"type": "website",
"input": "https://example.com",
"config": {
"memory": {},
"position_details": "Senior Software Engineer - Full-stack development with React and Node.js",
"investment_details": "Seed-stage B2B SaaS companies in fintech with strong recurring revenue",
"research_details": "Interviewing product managers at mid-size tech companies about onboarding workflows",
"partnership_details": "Looking for B2B companies from pharma for a partnership in distributing our product",
"enrichment_settings": {
"enrichment_limit_per_run": 30,
"signal_targeting_enabled": true,
"signal_targeting_categories": [
"website_funding"
]
},
"outreach_settings": {
"opt_out_settings": {
"text_opt_out_enabled": true
}
},
"autonomy_settings": {
"autopilot_mode": false,
"auto_reply_to_responses": false,
"manual_leads_mode": false
}
},
"created_by": "01a1f0d3-24df-76c8-837c-c00d9ebd02e8",
"master_lead_list_id": "01a1f0d3-24df-76c8-837c-c00e2e89ca96",
"agent_type": 2,
"self_improvement": false,
"timestamp_last_action": "2026-11-18T22:42:11.807Z",
"timestamp_last_decision": "2026-11-18T22:42:11.807Z",
"next_decision_time": "2026-11-18T22:42:11.807Z"
}{
"statusCode": 400,
"error": "Bad Request",
"message": "body must have required property 'name'",
"code": "FST_ERR_VALIDATION"
}{
"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": 409,
"error": "Conflict",
"message": "The resource already exists"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}AI Sales Agent
Update an AI Sales Agent
Update an AI Sales Agent, including its configuration.
Requires one of the following scopes: ai_sdr:update, ai_sdr:all, all:update, all:all
PATCH
/
api
/
v2
/
ai-agents
/
sales
/
{id}
Update an AI Sales Agent
curl --request PATCH \
--url https://api.instantly.ai/api/v2/ai-agents/sales/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Enterprise Outreach Agent"
}
'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/sales/{id}"
payload = { "name": "Enterprise Outreach Agent" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Enterprise Outreach Agent'})
};
fetch('https://api.instantly.ai/api/v2/ai-agents/sales/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.instantly.ai/api/v2/ai-agents/sales/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Enterprise Outreach Agent\"\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/ai-agents/sales/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Enterprise Outreach Agent'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/ai-agents/sales/{id}"
payload := strings.NewReader("{\n \"name\": \"Enterprise Outreach Agent\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "01a1f0d3-24df-76c8-837c-c00b589ca593",
"workspace_id": "01a1f0d3-24df-76c8-837c-c00c582b76cb",
"name": "Enterprise Outreach Agent",
"status": 1,
"initial_scrape_ready": false,
"timestamp_created": "2026-11-18T22:42:11.807Z",
"timestamp_updated": "2026-11-18T22:42:11.807Z",
"description": "Targets enterprise companies in tech sector",
"type": "website",
"input": "https://example.com",
"config": {
"memory": {},
"position_details": "Senior Software Engineer - Full-stack development with React and Node.js",
"investment_details": "Seed-stage B2B SaaS companies in fintech with strong recurring revenue",
"research_details": "Interviewing product managers at mid-size tech companies about onboarding workflows",
"partnership_details": "Looking for B2B companies from pharma for a partnership in distributing our product",
"enrichment_settings": {
"enrichment_limit_per_run": 30,
"signal_targeting_enabled": true,
"signal_targeting_categories": [
"website_funding"
]
},
"outreach_settings": {
"opt_out_settings": {
"text_opt_out_enabled": true
}
},
"autonomy_settings": {
"autopilot_mode": false,
"auto_reply_to_responses": false,
"manual_leads_mode": false
}
},
"created_by": "01a1f0d3-24df-76c8-837c-c00d9ebd02e8",
"master_lead_list_id": "01a1f0d3-24df-76c8-837c-c00e2e89ca96",
"agent_type": 2,
"self_improvement": false,
"timestamp_last_action": "2026-11-18T22:42:11.807Z",
"timestamp_last_decision": "2026-11-18T22:42:11.807Z",
"next_decision_time": "2026-11-18T22:42:11.807Z"
}{
"statusCode": 400,
"error": "Bad Request",
"message": "body must have required property 'name'",
"code": "FST_ERR_VALIDATION"
}{
"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": 409,
"error": "Conflict",
"message": "The resource already exists"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}Authorizations
Path Parameters
Body
application/json
Response
The updated AI Sales Agent
An AI Sales Development Representative that autonomously manages outreach campaigns