I’m encountering a problem when using the HubSpot API to retrieve information about marketing emails. The API in question is the following: https://api.hubapi.com/marketing-emails/v1/emails/with-statistics?limit=300&offset=1. According to the official documentation, we should be able to control the number of results returned using the “limit” parameter and navigate pages through the “offset” parameter. However, even after following the documentation correctly, the number of pages is not changing as expected.
According to my implementation, I would expect that by increasing the “limit” value to retrieve more emails per page, the total number of pages would decrease. However, this is not happening, and I’m getting the same results regardless of the “limit” value I pass.
I have already checked HubSpot’s official documentation, and I couldn’t find any mention of limit restrictions or additional information about pagination that could explain this unexpected behavior.
If anyone has experience with this API or knows of any details that may be missing in my implementation, please share your insights here.
I appreciate your help in advance!
Sincerely, Alan Martins