curl -X GET https://api.msndr.net/v1/email/lists?page_number=2&page_size=3 \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer $API_TOKEN'
If the requested page exceeds the maximum size, an error will be returned.
{
"errors": [
{
"code": 412,
"detail": "Page size is too big. Max value is 100"
}
]
}
The default page size is 100, but you can change it by specifying it in the request.
Here's an example response from the API:
{
"total_count":23,
"total_pages":8,
"page_number":2,
"page_size":3,
"collection":[
{
"id":1,
"title":"My Recipients"
},
{
"id":2,
"title":"My Recipients #2"
},
{
"id":3,
"title":"My Recipients #3"
}
]
}
Code |
Description |
2xx |
The request is successfully completed |
400 |
Invalid parameters |
401 |
Authentication failed |
402 |
Insufficient funds |
404 |
Resource not found |
415 |
Unsupported data type |
422 |
Resource cannot be processed |
500 |
Unknown error |