1
Email API GetMessages only returning 25 results
Question asked by Frank Wilson - 2/25/2024 at 10:21 PM
Answered
I'm attempting to retrieve a list of all emails in our SmarterMail inbox via API.

I can successfully authenticate and am able to retrieve some emails from api/v1/mail/messages, but only the most recent 25.

I can't see any parameters in the POST inputs that would allow me to increase or change this, also nothing seems to suggest the data is paginated.

Has anyone else ever come across this and, if so, what was your solution? Any advice is much appreciated!

2 Replies

Reply to Thread
1
Zach Sylvester Replied
Employee Post Marked As Answer
Hey Frank, 

Try adding this to the JSON. 
"take":200

Let me know if this helps. 

Thanks, 

Zach Sylvester Software Developer SmarterTools Inc. www.smartertools.com
0
Frank Wilson Replied
Great, that worked. Thank you!

Reply to Thread