Best answer by Roy
View originalCan we get list of all articles in a collection using the REST API?
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?
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 username or e-mail address. We'll send you an e-mail with instructions to reset your password.