Hello @shraddha a ,
You can get list of all articles via API call - https://api.intercom.io/articlesand then filter results by collection ID:
-----------------------------------------------------------------------------
"id": "5016408",
"type": "article",
"workspace_id": " ",
"title": "Test Article",
"description": "",
"body": "<p class=\"no-margin\">Text Article</p>",
"author_id": 3998818,
"state": "published",
"created_at": 1615293528,
"updated_at": 1620116598,
"url": " ",
"parent_id": 2628861, (Collection ID).
"parent_type": "collection"
-----------------------------------------------------------------------------
@roy s11 Suppose we only have 1 collection with 2 sections with 2 articles each. If we call list all articles API will the API return the articles as type "sections" or type "collection" or both? what takes preference?
Thanks in advance!
This is horrible, why there is no filter whatsoever on the get calls?
Is there any update on this? Fetching all articles and manually filtering them does not seem like a feasible solution when there’s hundreds of articles. Why doesn’t the collections endpoint include article ids OR why can’t we pass a collection id filter to the articles endpoint
I agree with what is being said above. It doesn’t look like a scalable enough solution for a great headless integration. Is there a plan to introduce filtering on top of the pagination feature?
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.