Create a new contact list to organize and segment your recipients using the AutoSend API.
curl --request POST \
--url https://api.autosend.com/v1/contact-lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Newsletter Subscribers",
"description": "Users who signed up for the weekly newsletter",
"type": "list"
}'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b4567",
"name": "Newsletter Subscribers",
"description": "Users who signed up for the weekly newsletter",
"type": "list",
"contactCount": 0,
"createdAt": "2026-03-17T10:30:00.000Z",
"updatedAt": "2026-03-17T10:30:00.000Z"
}
}
curl --request POST \
--url https://api.autosend.com/v1/contact-lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Newsletter Subscribers",
"description": "Users who signed up for the weekly newsletter",
"type": "list"
}'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b4567",
"name": "Newsletter Subscribers",
"description": "Users who signed up for the weekly newsletter",
"type": "list",
"contactCount": 0,
"createdAt": "2026-03-17T10:30:00.000Z",
"updatedAt": "2026-03-17T10:30:00.000Z"
}
}
<token>, where <token> is your auth token.200Example: "Newsletter Subscribers"500Example: "Users who signed up for the weekly newsletter"list, segmentDefault: "list"Example: "list"type is segment.Show child attributes
AND, ORExample: "AND"Show child attributes
"email"string, number, boolean, dateExample: "string"equals, not_equals, contains, not_contains, starts_with, ends_with, is_empty, is_not_emptyNumber operators: equals, not_equals, greater_than, less_than, betweenBoolean operators: equals, not_equalsDate operators: equals, not_equals, before, after, between, is_empty, is_not_emptyExample: "contains"is_empty and is_not_empty.Example: "@gmail.com""60d5ec49f1b2c72d9c8b4567"trueShow child attributes
"60d5ec49f1b2c72d9c8b4567""Newsletter Subscribers""Users who signed up for the weekly newsletter"list or segmentExample: "list"0"2026-03-17T10:30:00.000Z""2026-03-17T10:30:00.000Z"curl --request POST \
--url https://api.autosend.com/v1/contact-lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Newsletter Subscribers",
"description": "Users who signed up for the weekly newsletter",
"type": "list"
}'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b4567",
"name": "Newsletter Subscribers",
"description": "Users who signed up for the weekly newsletter",
"type": "list",
"contactCount": 0,
"createdAt": "2026-03-17T10:30:00.000Z",
"updatedAt": "2026-03-17T10:30:00.000Z"
}
}