Zendesk Topic Api Error | Community
Skip to main content

Zendesk Topic Api Error

  • November 16, 2023
  • 2 replies
  • 0 views

Honey

I am trying to get Zendesk topics using the following api documentation but it's not working.

https://developer.zendesk.com/api-reference/help_center/help-center-api/topics/

from requests import Session
session = Session()
session.auth = 'test@gmail.com', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
topics_url = https://test.zendesk.com/api/v2/community/topics.json?include=users
topics_response = session.get(topics_url, auth=(email + '/token', api_token))
print(topics_response)
print(topics_response.text)

I am getting following error:

<Response [404]>
Not Found

I want to confirm that topic UI and api still exist or not. If exist how can i fix this issue?

2 replies

Dave24
  • November 16, 2023

Your code snipped makes it look like you're trying to access test.zendesk.com -- replace "test" with your Zendesk subdomain, and that should remove the "Not found" error.

However, you might get an "InvalidEndpoint" error after that -- I think that might be caused by your inclusion of "?include=users" in the API endpoint url. I'm not sure if that's something you can add to this endpoint (when I removed it, the error went away for me).


Honey
  • Author
  • November 17, 2023

I removed "?include=users" from the API endpoint URL and replaced "test" with my Zendesk subdomain, but I'm still encountering the same error.