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!
According to the docs you can enable password and email as auth:
- If you don't already have a Zendesk Support account, register to start a free trial at https://www.zendesk.com/register/
- In your browser, navigate to your Zendesk account. The url will look something like https://your_subdomain.zendesk.com.
- 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.
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