curl --request POST \
--url https://api.instantly.ai/api/v2/ai-agents/sales \
--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"
payload = { "name": "Enterprise Outreach Agent" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/ai-agents/sales")
.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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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"
payload := strings.NewReader("{\n \"name\": \"Enterprise Outreach Agent\"\n}")
req, _ := http.NewRequest("POST", 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'"
}{
"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"
}Create an AI Sales Agent
Create a new AI Sales Agent. Provide type and input to extract business details from a website or pitch deck, or skip the scrape by setting memory_from_workspace to true to copy the workspace business details, or is_duplicate with source_ai_sdr_id to copy an existing agent.
Requires one of the following scopes: ai_sdr:create, ai_sdr:all, all:create, all:all
curl --request POST \
--url https://api.instantly.ai/api/v2/ai-agents/sales \
--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"
payload = { "name": "Enterprise Outreach Agent" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/ai-agents/sales")
.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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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"
payload := strings.NewReader("{\n \"name\": \"Enterprise Outreach Agent\"\n}")
req, _ := http.NewRequest("POST", 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'"
}{
"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
Body
The AI Sales Agent to create
The AI Sales Agent to create
The outbound agent type to create; preserved on every read. 2 = Sales, 7 = Recruiting, 8 = Investment, 9 = User Research, 10 = Partnership. Required unless is_duplicate is true, in which case the type is inherited from the duplicated agent.
2, 4, 7, 8, 9, 10 2
Response
The AI Sales Agent
An AI Sales Development Representative that autonomously manages outreach campaigns