Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen
Can authenticate Request API but cannot with Ticket API
Gepostet 18. Jan. 2024
Hi folks, I'm having the following issue.
I'm working with Google Apps Script to create a ticket in Zendesk. I have managed to do it with the Request API but when tried with Ticket API the response is {"error":"Couldn't authenticate you"}. I'm using the same API token I have generated as Admin.
Does anyone knows if there are extra permissions needed to use Ticket API? I have checked documentation and auth process seems to be same for both APIs.
Thanks in advance!
0
5
5 Kommentare
Juan Aguilar
Hi Greg Katechis, thanks for chiming in.
This is the google appscript function I'm using to get oauth token
0
Greg Katechis
Hi Juan! Could you let us know what scopes you've used and the specific endpoint that you're trying to access?
0
Juan Aguilar
Hi Tipene Hughes thanks for your answer!
I have been trying to make this Oauth access token work with no success.
Are client_credentials grant type supported? The implementation I'm working on should not have this redirect URL in which users accept the connection. It should a direct process without the user acceptance of the grant_type "authotization_code".
I'm getting the following error:
{"error":"unauthorized_client","error_description":"The authenticated client is not authorized to use the access grant type provided."}
0
Tipene Hughes
You will need to use an Oauth access token for external requests to the Tickets API. The Requests API is one of the few APIs that doesn't require Oauth authorization as it is intended for end users. Here's a link that goes in to more detail around security and authentication with respect to our APIs:
https://developer.zendesk.com/api-reference/introduction/security-and-auth/
I hope this helps!
Tipene
0
Juan Aguilar
Some extra info. Im trying to use the Ticket API to add attachments to the ticket.
0
Melden Sie sich an, um einen Kommentar zu hinterlassen.