List Mailing Lists
GET/print-mail/v1/mailing_lists
Retrieve a list of mailing lists.
Returns a paginated list of mailing lists associated with the authenticated organization, filterable by various parameters.
Query Parameters
search: optional string
You can supply any string to help narrow down the list of resources. For example, if you pass "New York" (quoted), it will return resources that have that string present somewhere in their response. Alternatively, you can supply a structured search query. See the documentation on StructuredSearchQuery for more details.
List Mailing Lists
curl https://api.postgrid.com/print-mail/v1/mailing_lists \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY"{
"object": "list",
"totalCount": 1,
"skip": 0,
"limit": 10,
"data": [
{
"id": "mailing_list_123",
"live": false,
"description": "Test Mailing List",
"metadata": {
"campaign": "launch"
},
"createdAt": "2023-10-27T10:00:00Z",
"updatedAt": "2023-10-27T10:00:00Z",
"status": "completed",
"errors": []
}
]
}Returns Examples
{
"object": "list",
"totalCount": 1,
"skip": 0,
"limit": 10,
"data": [
{
"id": "mailing_list_123",
"live": false,
"description": "Test Mailing List",
"metadata": {
"campaign": "launch"
},
"createdAt": "2023-10-27T10:00:00Z",
"updatedAt": "2023-10-27T10:00:00Z",
"status": "completed",
"errors": []
}
]
}