Skip to main content

List Lists

Retrieve a paginated list of all contact lists with optional filtering.

Request

GET /lists

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (min: 1)
per_pageinteger100Items per page (min: 1, max: 100)
searchstring-Search by list name or description (max 255 characters)

Ordering: Results are ordered by created_at descending (newest first).

Example Request

curl -X GET "https://email.easy.tools/api/v1/lists?page=1&per_page=50&search=newsletter" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"

Response

Success Response (200 OK)

{
"data": [
{
"uuid": "list-uuid-123",
"name": "Newsletter Subscribers",
"description": "Main newsletter list",
"is_public": true,
"contacts_count": 150,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
},
{
"uuid": "list-uuid-456",
"name": "VIP Customers",
"description": null,
"is_public": false,
"contacts_count": 25,
"created_at": "2025-01-14T09:00:00Z",
"updated_at": "2025-01-14T09:00:00Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 50,
"total": 2
}
}

Response Fields

FieldTypeDescription
uuidstringList's unique identifier
namestringList name
descriptionstring|nullPublic description
is_publicbooleanWhether the list is public
contacts_countintegerNumber of contacts in the list
created_atstringISO 8601 timestamp (UTC)
updated_atstringISO 8601 timestamp (UTC)

Pagination Object

FieldTypeDescription
current_pageintegerCurrent page number
per_pageintegerNumber of items per page
totalintegerTotal number of lists

Error Responses

Validation Error (422 Unprocessable Entity)

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"per_page": ["The per page must not be greater than 100."]
}
}
}