Create contact list
curl --request POST \
--url https://prod-platform-core-api.20x.business/api/v1/contact-lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://prod-platform-core-api.20x.business/api/v1/contact-lists"
payload = { "name": "<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({name: '<string>'})
};
fetch('https://prod-platform-core-api.20x.business/api/v1/contact-lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Contact Lists
Create contact list
Create a new contact list to hold campaign recipients
POST
/
contact-lists
Create contact list
curl --request POST \
--url https://prod-platform-core-api.20x.business/api/v1/contact-lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://prod-platform-core-api.20x.business/api/v1/contact-lists"
payload = { "name": "<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({name: '<string>'})
};
fetch('https://prod-platform-core-api.20x.business/api/v1/contact-lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Creates a new empty contact list. You can populate the list by uploading a CSV via
POST /contact-lists/{id}/upload, adding contacts individually via POST /contact-lists/{listId}/contacts, or adding contacts in bulk via POST /contact-lists/{listId}/contacts/bulk.
Body parameters
string
required
Unique name for the contact list across your tenant.
object
Optional arbitrary key-value metadata (e.g. source tracking or campaign category).
curl -X POST https://prod-campaign-engine-api.20x.business/api/v1/contact-lists \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Q3 Target Leads",
"metadata": {
"source": "hubspot_export",
"tier": "enterprise"
}
}'
import requests
response = requests.post(
"https://prod-campaign-engine-api.20x.business/api/v1/contact-lists",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"name": "Q3 Target Leads",
"metadata": {"source": "hubspot_export", "tier": "enterprise"},
},
)
print(response.json())
const response = await fetch("https://prod-campaign-engine-api.20x.business/api/v1/contact-lists", {
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Q3 Target Leads",
metadata: { source: "hubspot_export", tier: "enterprise" },
}),
});
const data = await response.json();
console.log(data);
Response
{
"id": "33333333-3333-3333-3333-333333333333",
"tenantId": "990e8400-e29b-41d4-a716-446655440000",
"name": "Q3 Target Leads",
"metadata": {
"source": "hubspot_export",
"tier": "enterprise"
},
"createdAt": "2026-06-01T09:00:00.000Z",
"updatedAt": "2026-06-01T09:00:00.000Z"
}

