Using OAuth authentication with your application



image avatar

Charles Nadeau

Zendesk Documentation Team

Edited Apr 10, 2025


15

63

63 comments

Hi Mullai,

OAuth 2 is used to authenticate all your application's API requests to Zendesk. Once it has been completed, you can refer to Zendesk API, for all the available data that you can extract from your Zendesk instance.

0


How to get the Client's data such as email id, username, etc., After being OneAuthenticated in my Application, to be specific after obtaining the access_token, How to extract or fetch the client's Data?

Just like the JSON, we get from the 'me.json' request.

 

1


Hi 4950247457306
 
Based from the screenshot you provided I would suggest looking into this developer doc as well to help you with the Help Center API.

The "invalid authorization request no such client" error can occur when the Client ID/secret is incorrect, or if an incorrect redirect URL is configured.

 
The OAuth "Client ID" that should be used is the "Unique Identifier" value that's displayed in the Admin Center > Apps and integrations () > APIs > Zendesk APIs > OAuth Clients screen:

If using our APIs to access the list of OAuth clients, it's the "identifier" attribute returned by the /api/v2/oauth/clients endpoint. Make sure to use this identifier value and not the 'id' value returned by the API.

Hope this helps!

0


i am getting this error


 

0


Hi, is there a way to force a user to re-login when they go through the OAuth flow? I tried adding  "&login=true" to the URL, but that did not work.

0


Hi Support Team,

How do I renew the token which is generated using https://{{baseurl}}/oauth/tokens? Please help.

0


Thanks, Dainne! 

 

0


Hi 1263797851689

This might be an article (OAuth Tokens-Scopes) worth checking out. It provides details regarding the scopes parameter so you can set the access as either "read" or "write". Hope this helps!

0


Hi there, 

We would like to allow a 3rd party service to pull data from our Help Center articles via API. If I get this right, OAuth authentication would be a good choice, but I don't see any option to restrict the API requests to ready-only. Is this possible? Does my question even make sense? ;-) 

0


We are also seeing this issue having cropped up in the last couple of weeks with our application that was working and there have been no changes on our end recently. 

I have noticed in testing that the format of the access_token has changed it is now twice as long as some of the ones that were created. The older shorter tokens continue to work but I get a similar error message to Cesar when using the newer style tokens. 

"The access token provided is expired, revoked, malformed or invalid for other reasons."

0


Sign in to leave a comment.