Recent searches


No recent searches

Zendesk Topic Api Error



Posted Nov 16, 2023

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?


0

2

2 comments

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

0


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).

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post