APIs & Integrations

ar-hz
Member

How to get all states from get_blog_posts

Right now, it only takes either DRAFT, PUBLISHED or SCHEDULED as a parameter for state. I want to get all the posts in any state. How do I achieve that ?

Thanks.

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to get all states from get_blog_posts

Hi @ar-hz,

Including the state parameter in your request will return all blog posts with that state. Not including the state parameter at all will return all blog posts, regardless of state.

List blog posts | COS Blog API

GET /content/api/v2/blog-posts - List Blog Posts API, Supports paging and filtering.