What are my credentials for API access when using SSO/Google/MS to sign in?

Return to top
Have more questions? Submit a request


  • Travis DePuy

    Hello, I think this article needs more details. I banged my head on the desk trying to figure out why I kept getting this:

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

    As it turns out the "/token" is explicitly required, it's not just a place holder for the token. Here is a working curl request:



    curl -X GET -u "$USERNAME" https://instance.zendesk.com/api/v2/help_center/en-us/categories/433262820-some-category/articles.json

    Replace "MYREALLYLONGTOKENHERE" and "user@domain.com" with the appropriate details, but keep the /token. And note that your password is not used anywhere. 

    Hopefully this helps others. 


  • Bryan - Community Manager
    Zendesk Developer Support

    This does help. Thanks Travis for sharing!

    There was a recent documentation refresh in the area that talks about the "/token" authentication method -- for reference it's here under API token in the developer reference documentation.

    There's also this article: Authentication for API requests

    And this is also a good community thread about them: Are API tokens user specific or account wide?

    Sorry for the frustration but hopefully the above links help round out the picture a bit more.

  • Mark van Beekum

    This helped me too.

    I got stuck on the documentation below. Does it not work for SSO?


    Use the following format for the credentials:




    After base64-encoding the resulting string, add it to the Authorization header as follows:

    Authorization: Basic amRvZUBleGFtcGxlLmNvbS90b2tlbjo2d2lJQldiR2tCTW8xbVJETXVWd2t3MUVQc05rZVVqOTVQSXoyYWt2
  • Bryan - Community Manager
    Zendesk Developer Support

    Hi Mark van Beekum. If you're asking about the {email_address}/token:{api_token} format, this is specific to Zendesk Support's native authentication.

    If you're using an SSO option to authenticate and log into Zendesk, you'd want to conform to the standards needed with your SSO provider. See SSO options in Zendesk for more. Does that help?


Please sign in to leave a comment.

Powered by Zendesk