Create a new Heymarket contact list and optionally populate it with contacts by ID, phone number, or email address in a single POST /v2/lists request.
curl --request POST \
--url https://api.heymarket.com/v2/lists \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"title": "My VIP Contacts",
"type": "contacts",
"local_id": "dc3deb9b-940a-444d-9d0e-8e3087a160e9",
"contacts": [1001, 1002, 1003]
}'
{
"id": 42,
"rev": 1,
"uuid": "dc3deb9b-940a-444d-9d0e-8e3087a160e9"
}
"contacts" to create an omnichannel contact-based list. Omit for a standard phone-number list.+ (e.g., "14155550100"). New contacts are created for any number not already in your account.curl --request POST \
--url https://api.heymarket.com/v2/lists \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"title": "My VIP Contacts",
"type": "contacts",
"local_id": "dc3deb9b-940a-444d-9d0e-8e3087a160e9",
"contacts": [1001, 1002, 1003]
}'
{
"id": 42,
"rev": 1,
"uuid": "dc3deb9b-940a-444d-9d0e-8e3087a160e9"
}
POST /v1/list is deprecated. Use POST /v2/lists for all new integrations.Was this page helpful?
curl --request POST \
--url https://api.heymarket.com/v2/lists \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"title": "My VIP Contacts",
"type": "contacts",
"local_id": "dc3deb9b-940a-444d-9d0e-8e3087a160e9",
"contacts": [1001, 1002, 1003]
}'
{
"id": 42,
"rev": 1,
"uuid": "dc3deb9b-940a-444d-9d0e-8e3087a160e9"
}