pythonpostmanzendeskzendesk-api

Zendesk: anyone knows how to authenticate in Zendesk API?


I am trying to connect to Zendesk with API token, but I am getting this issue:

{
    "error": "Couldn't authenticate you"
}

I am trying to use Basic Auth (here is a screenshot from Postman).

If anyone knows another way how to do it, share it with me please!


Solution

  • According to the docs you can enable password and email as auth:

    1. If you don't already have a Zendesk Support account, register to start a free trial at https://www.zendesk.com/register/
    2. In your browser, navigate to your Zendesk account. The url will look something like https://your_subdomain.zendesk.com.
    3. In Admin Center, click the Apps and integrations icon () in the sidebar, then select APIs > Zendesk APIs. Under the Settings tab, make sure Password Access is enabled in the settings. If you don't have permissions to do this, ask an admin to check for you.

    enable zendesk password and email auth


    There are also ways to use OAuth or an API Token. See this article:
    How can I authenticate API requests?

    If you use an API token, combine your email address and API token to generate the authorization header.
    The email address and API token combination need to be a Base-64 encoded string.
    The authorization header should be formatted like this:

    Authorization: Basic email_address/token:api_token