Skip to main content

List Contacts

You can retrieve a list of contacts in your account by sending a GET request to the API endpoint.

Endpoint Information

Endpoint: https://manage.maileroo.app/v1/contacts/[:list_id]?query=[:query]&page=[:page]
Method: GET
Content Type: application/json
Authentication: Required

Where To Find Your List ID

You can find your list ID in your when you to go to your 'Contacts' section within your organization. There it will display the list-id that you can use in this endpoint.

Request

The GET request does not require a request body. All necessary information is provided in the URL parameters.

Request Headers

Content-Type: application/json
X-API-Key: YOUR_API_KEY_HERE

URL Parameters

ParameterTypeDescriptionRequired
list_idstringThe ID of the list to retrieve contacts fromYes
querystringSearch query to filter contacts (optional)No
pageintegerPage number for pagination (default: 1)No
Search Functionality

The query parameter allows you to search for contacts by name, email, or tags. This is useful for finding specific contacts in large lists.

Pagination

Use the page parameter to navigate through large lists of contacts. Each page typically contains a limited number of contacts for optimal performance.

Response

The response will be a JSON object representing the list of contacts you requested. The response object will include the following fields:

FieldTypeDescription
successbooleanBoolean indicating whether the request was successful
messagestringMessage describing the result of the request
dataobjectObject containing pagination and contact information

Data Object Structure

The data field will contain an object with the following fields:

FieldTypeDescription
current_pageintegerCurrent page number
total_pagesintegerTotal number of pages
total_itemsintegerTotal number of items
contactsarrayArray of objects representing the contacts

Success Response

{
"success": true,
"message": "Contacts retrieved successfully",
"data": {
"current_page": 1,
"total_pages": 5,
"total_items": 125,
"contacts": [
{
"subscriber_name": "John Doe",
"subscriber_email": "[email protected]",
"subscriber_timezone": "America/New_York",
"subscriber_tags": "customer,premium",
"subscriber_status": "SUBSCRIBED",
"custom_field1": "value1",
"custom_field2": "value2"
},
{
"subscriber_name": "Jane Smith",
"subscriber_email": "[email protected]",
"subscriber_timezone": "Europe/London",
"subscriber_tags": "prospect",
"subscriber_status": "UNCONFIRMED",
"custom_field1": "value3"
}
]
}
}

Error Response

{
"success": false,
"message": "List not found"
}

Contact Object

A contact object represents a contact in your Maileroo account. It contains information about the contact, such as their name, email address, and status. It is represented as a JSON object with the following fields:

FieldTypeDescriptionMandatory
subscriber_namestringName of the contactNo
subscriber_emailstringEmail address of the contactYes
subscriber_timezonestringTimezone of the contact (such as "America/New_York")No
subscriber_tagsstringTags associated with the contact, separated by commasNo
subscriber_statusstringStatus of the contactNo

Contact Status Values

StatusDescription
SUBSCRIBEDContact is actively subscribed and can receive emails
UNSUBSCRIBEDContact has unsubscribed from emails
UNCONFIRMEDContact has not confirmed their subscription
BOUNCEDContact's email address has bounced
Confirmation Emails

If you would like the system to send a confirmation email to the contact, you can use the status "UNCONFIRMED" as this will trigger the system to send a confirmation email to the contact.

Custom Fields

In addition to the standard fields, you can also include custom fields in the contact object. Custom fields are additional fields that you can use to store information about the contact, such as their age, location, or interests. Custom fields are represented as key-value pairs in the contact object, and can be used with templates and for segmentation.

Example Contact Object

{
"subscriber_name": "John Doe",
"subscriber_email": "[email protected]",
"subscriber_timezone": "America/New_York",
"subscriber_tags": "tag1,tag2",
"subscriber_status": "UNCONFIRMED",
"custom_field1": "value1",
"custom_field2": "value2"
}