Bulk add contacts
curl --request POST \
--url http://localhost:8787/api/v1/contact-lists/{listId}/contacts/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"phoneNumber": "<string>",
"name": "<string>",
"email": "<string>",
"metadata": {}
}
]
}
'import requests
url = "http://localhost:8787/api/v1/contact-lists/{listId}/contacts/bulk"
payload = { "contacts": [
{
"phoneNumber": "<string>",
"name": "<string>",
"email": "<string>",
"metadata": {}
}
] }
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({
contacts: [{phoneNumber: '<string>', name: '<string>', email: '<string>', metadata: {}}]
})
};
fetch('http://localhost:8787/api/v1/contact-lists/{listId}/contacts/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Contact Lists
Bulk add contacts
Add multiple contacts to a contact list in a single JSON payload
POST
/
contact-lists
/
{listId}
/
contacts
/
bulk
Bulk add contacts
curl --request POST \
--url http://localhost:8787/api/v1/contact-lists/{listId}/contacts/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"phoneNumber": "<string>",
"name": "<string>",
"email": "<string>",
"metadata": {}
}
]
}
'import requests
url = "http://localhost:8787/api/v1/contact-lists/{listId}/contacts/bulk"
payload = { "contacts": [
{
"phoneNumber": "<string>",
"name": "<string>",
"email": "<string>",
"metadata": {}
}
] }
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({
contacts: [{phoneNumber: '<string>', name: '<string>', email: '<string>', metadata: {}}]
})
};
fetch('http://localhost:8787/api/v1/contact-lists/{listId}/contacts/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Inserts an array of contacts into a contact list. Duplicates within the list are automatically skipped.
Path parameters
string
required
The unique UUID of the contact list.
Body parameters
object[]
required
curl -X POST https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/bulk \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contacts": [
{
"phoneNumber": "+919876543210",
"name": "Asha Patel",
"email": "asha@example.com"
},
{
"phoneNumber": "+919876543211",
"name": "Rohan Sharma",
"email": "rohan@example.com"
}
]
}'
import requests
response = requests.post(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/bulk",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"contacts": [
{
"phoneNumber": "+919876543210",
"name": "Asha Patel",
"email": "asha@example.com",
},
{
"phoneNumber": "+919876543211",
"name": "Rohan Sharma",
"email": "rohan@example.com",
},
]
},
)
print(response.json())
const response = await fetch(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/bulk",
{
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
contacts: [
{
phoneNumber: "+919876543210",
name: "Asha Patel",
email: "asha@example.com",
},
{
phoneNumber: "+919876543211",
name: "Rohan Sharma",
email: "rohan@example.com",
},
],
}),
},
);
const data = await response.json();
console.log(data);
Response
{
"imported": 2
}
⌘I

