Just created a token but getting "token provided is expired..." erro | Community
Skip to main content

Just created a token but getting "token provided is expired..." erro

  • October 4, 2023
  • 1 reply
  • 0 views

I just created a new token. However, when I do:

curl https://<email>.zendesk.com/api/v2/users.json \
  -H "Authorization: Bearer <token>"

I get:

< content-length: 134
< www-authenticate: Bearer realm=Zendesk::OAuth Bearer Token Authentication
< error: invalid_token
< error_description: The access token provided is expired, revoked, malformed or invalid for other reasons.

Any thoughts why and how to resolve?

1 reply

Greg29
  • October 4, 2023

Hi Vince! That particular response is fairly generic, so it's difficult to say exactly what might be wrong in this situation. Generally speaking, I would assume that either there's an issue with the formation of the token or an issue with the scope. Instead of using a variable, could you generate a new token and paste that into your request directly to see if that works? If you're still having that issue, could you check the scope and ensure that it has access to the users APIs?