Skip to main content

Creating a Contact List

This endpoint creates a new contact list.

A contact list is a grouping of profiles/contacts that can be used for sending campaigns.
It helps you segment your audience, for example:

  • VIP customers
  • Beta testers
  • Event attendees

Endpoint

POST /list/create

Headers

HeaderValueRequired
AuthorizationBearer <your-api-key>✅ Yes
Content-Typeapplication/json✅ Yes

Body Parameters

ParameterTypeRequiredDescription
listNameString✅ YesThe name of the new list.
listDescriptionString✅ YesA description for the new list.
profilesArray of Strings❌ OptionalAn initial set of profile IDs to associate with the list.

Examples

Request

const response = await fetch("https://api.basicsengage.com/api/v0/dev/list/create", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <your-api-key>"
},
body: JSON.stringify({
listName: "Beta Testers",
listDescription: "Users who signed up for beta",
profiles: ["640cfa8d1", "640cfa8d2"]
})
});

const data = await response.json();
console.log(data);

Responses

{
"status": "success",
"data": {
"listId": "64b22f999"
}
}