For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get all Contact Lists

Get all contact lists existing in your account

get
Authorizations
Api-TokenstringRequired

Pass the API token in the Api-Token

Query parameters
searchstringOptional

Filter contact lists by name (case-insensitive prefix match).

Example: news
Responses
200

OK.

application/json
idintegerOptional
namestring · max: 255Optional
get/api/contacts/lists
curl -X GET https://mailtrap.io/api/contacts/lists \
  -H 'Authorization: Bearer YOUR_API_KEY'

# Filter lists by name (case-insensitive prefix match)
curl -X GET 'https://mailtrap.io/api/contacts/lists?search=news' \
  -H 'Authorization: Bearer YOUR_API_KEY'
[
  {
    "id": 26730,
    "name": "Customers"
  },
  {
    "id": 26731,
    "name": "Old Contacts"
  }
]

Last updated

Was this helpful?