Oct 24, 20191:25 PM - edited Oct 25, 201910:52 AM
Participant
"List Pages" (/content/api/v2/pages) endpoint not giving results {"objects":[], "total":0}
SOLVE
Hello! I am working on an integration for my company's client and need some help figuring out an issue, specifically, I am having some trouble getting the list of landing pages from the "List Pages" (/content/api/v2/pages) endpoint.
As you can see in the below http session, I am getting a response successfully, but with 0 results.
For reference though, in my attempts to verify the existence of these landing pages, I found that at least some parts of the UI do not allow the account which I created the oauth credentials with to see the landing pages. For example
Given those details, is this discrepancy a result of: - my request missing some parameter? - my access_token missing some scope?
- the account that created this access token lacking permissions? (this seems the most likely, but it also seems odd that there is no permissions error given by the API)
"List Pages" (/content/api/v2/pages) endpoint not giving results {"objects":[], "total":0}
SOLVE
Hi, all. Apologies for the delayed response.
Thanks for jumping in, @kendrickto. I've replied to your related post here.
I am able to reproduce this behavior in my own account. Requests authenticated with API keys return landing page data while the same requests using OAuth tokens have empty objects arrays.
I'll loop in the relevant engineering team to get this resolved as soon as possible.
"List Pages" (/content/api/v2/pages) endpoint not giving results {"objects":[], "total":0}
SOLVE
I'm running into the same issue with our HubSpot integration, when testing it seems that if you use the api key for authorization instead of the Oauth token flow it pulls the landing pages. Hopefully that helps you out a bit, unfortunately I do not know why the token receives the empty response either.
Oct 25, 201910:48 AM - edited Oct 25, 201910:49 AM
Participant
"List Pages" (/content/api/v2/pages) endpoint not giving results {"objects":[], "total":0}
SOLVE
Interesting! At least I now know I'm not the only one experiencing this issue.
Unfortunately, at this time I do not have an api key, or the ability to get one from the UI, so I can't yet confirm if I'm experiencing the same issue, but if/when I can, I'll update here.
In the mean time I've +1'd your question in hopes that it might draw the attention of any moderators here, becase while an api key may work for development, it is certainly isn't ideal for our clients.
"List Pages" (/content/api/v2/pages) endpoint not giving results {"objects":[], "total":0}
SOLVE
Same here! We've had our system built to use OAuth for a couple years now and we would have to go back and ask our clients to change and generate an api key in HubSpot
"List Pages" (/content/api/v2/pages) endpoint not giving results {"objects":[], "total":0}
SOLVE
Hi, all. Apologies for the delayed response.
Thanks for jumping in, @kendrickto. I've replied to your related post here.
I am able to reproduce this behavior in my own account. Requests authenticated with API keys return landing page data while the same requests using OAuth tokens have empty objects arrays.
I'll loop in the relevant engineering team to get this resolved as soon as possible.