How to Create Bearer Token



Posted Apr 15, 2025

I am using 2 API end points 1 is searching all the tickets and the other API to get the chat description of each tickets. I am able to use the 1st API with the BASIC Auth but un able to use the 2nd chat API to fecth the chat Description due to the Bearer token i am unable to figure out how to generate the Bearer token by reading the API documentation can anyone help me step s to generate the Bearer token?


0

1

1 comment

This is what I used to create Bearer token

Create Bearer token

Post suburl.zendesk.com/api/v2/oauth/tokens

 

curl -X POST https://suburl.zendesk.com/api/v2/oauth/tokens.json \

 -u user/token: \

 -H "Content-Type: application/json" \

 -d '{

   "token": {

     "client_id": "",

     "scopes": ["read", "write"]

   }

 }'

 

You need to put your subdomain where I have subURL and your login at user and of course your token

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post