Skip to main content

Create List

Create a new contact list to organize contacts into groups for targeted campaigns. A contact can belong to multiple lists.

Endpoint

POST /lists

Returns: 201 Created

Headers

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

Body Parameters

ParameterTypeRequiredDescription
namestringYesList name. Max 255 characters.
descriptionstringNoOptional description of the list.

Response

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "Newsletter Subscribers",
"description": "Contacts who opted in for weekly newsletter",
"contact_count": 0,
"created_at": "2026-03-08T12:00:00.000Z",
"updated_at": "2026-03-08T12:00:00.000Z"
}
FieldTypeDescription
idstringUnique list ID (UUIDv7)
namestringList name
descriptionstring | nullList description
contact_countnumberNumber of contacts currently in the list
created_atstringISO 8601 timestamp
updated_atstringISO 8601 timestamp

Examples

curl -X POST "https://api.arsel.sa/v1/lists" \
-H "Authorization: Bearer be_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Newsletter Subscribers",
"description": "Contacts who opted in for weekly newsletter"
}'

Error Responses

{
"status_code": 422,
"name": "validation_error",
"message": "name must be shorter than or equal to 255 characters"
}