Add contact
curl --request POST \
--url http://localhost:8787/api/v1/contact-lists/{listId}/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>"
}
'import requests
url = "http://localhost:8787/api/v1/contact-lists/{listId}/contacts"
payload = { "phoneNumber": "<string>" }
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({phoneNumber: '<string>'})
};
fetch('http://localhost:8787/api/v1/contact-lists/{listId}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Contact Lists
Add contact
Add a single contact to a contact list
POST
/
contact-lists
/
{listId}
/
contacts
Add contact
curl --request POST \
--url http://localhost:8787/api/v1/contact-lists/{listId}/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>"
}
'import requests
url = "http://localhost:8787/api/v1/contact-lists/{listId}/contacts"
payload = { "phoneNumber": "<string>" }
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({phoneNumber: '<string>'})
};
fetch('http://localhost:8787/api/v1/contact-lists/{listId}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Appends a new contact to the specified contact list.
Path parameters
string
required
The unique UUID of the contact list.
Body parameters
string
required
Recipient phone number in E.164 format (e.g.
+919876543210, +14155552671).string
Contact’s full name.
string
Contact’s email address.
object
Custom dynamic variables accessible during call execution as LLM prompt context (e.g.
{"plan": "premium", "renewal_date": "2026-07-01"}).curl -X POST https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+919876543210",
"name": "Asha Patel",
"email": "asha.patel@example.com",
"metadata": {
"plan": "Enterprise",
"company": "Acme Corp"
}
}'
import requests
response = requests.post(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"phoneNumber": "+919876543210",
"name": "Asha Patel",
"email": "asha.patel@example.com",
"metadata": {"plan": "Enterprise", "company": "Acme Corp"},
},
)
print(response.json())
const response = await fetch(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts",
{
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
phoneNumber: "+919876543210",
name: "Asha Patel",
email: "asha.patel@example.com",
metadata: { plan: "Enterprise", company: "Acme Corp" },
}),
},
);
const data = await response.json();
console.log(data);
Response
{
"id": "99999999-8888-7777-6666-555555555555",
"tenantId": "990e8400-e29b-41d4-a716-446655440000",
"contactListId": "33333333-3333-3333-3333-333333333333",
"phoneNumber": "+919876543210",
"name": "Asha Patel",
"email": "asha.patel@example.com",
"metadata": {
"plan": "Enterprise",
"company": "Acme Corp",
"source": "single"
},
"createdAt": "2026-06-01T09:10:00.000Z",
"updatedAt": "2026-06-01T09:10:00.000Z"
}
⌘I

