Create Contact List
Create new Contact Lists
post
Authorizations
Api-TokenstringRequired
Pass the API token in the Api-Token
Body
namestringOptional
Responses
200
Contact List Created.
application/json
idintegerOptional
namestring · max: 255Optional
401
Returns unauthorized error message. Check your credentials.
application/json
403
Returns forbidden error message. Check your permissions.
application/json
429
Rate limit exceeded for the current account.
application/json
500
Internal error. Retry later or contact support.
application/json
post/api/contacts/lists
curl -X POST https://mailtrap.io/api/contacts/lists \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"name": "Customers"}'
{
"id": 26730,
"name": "Customers"
}Last updated
Was this helpful?

