Search API

2 Comments

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Andreas! Since our Search API is intended for both end-users, agents, and admins, providing responses that aren't published is not part of the expected behavior. That's not to say it wouldn't be something that could be developed in the future, so I would recommend posting in the Guide feedback forum following the recommendations in this post to give the product team the most useful information about your situation.

    0
  • Charles Nadeau
    Zendesk Documentation Team

    Hi Andreas,

    You could also use a List Articles endpoint then filter the results by `"draft" == true` . The pseudo-code could look like this:

    draft_articles = []
    url = "https://example.zendesk.com/api/v2/help_center/articles"
    articles = request(url) # function includes pagination
    for article in articles:
    ..if article['draft'] == True:
    ....draft_articles.append(article)
    save('draft_articles.json', draft_articles)

     

    0

Please sign in to leave a comment.

Powered by Zendesk