Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where to get the client id and secret key in order to use the Rest APIs of Jira Service Management?

DKolesnikova August 22, 2024

We are planning to use the Rest APIs of Jira Service Management Data Center

To do so we are in need of  'client-id' and 'client-secret' to get authorized.

Let us know how we can get it.

Thank you!

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2024

Hello @DKolesnikova  If you are in Data center, you need Personal Access Token

In Jira, select your profile picture at the top right of the screen, then choose Profile. Once you access your profile, select Personal Access Tokens in the left-hand menu and create one.

Once you have it, you can authenticate your REST calls by passing Bearer <yourtoken>.. for example..

curl -H "Authorization: Bearer <yourToken>" https://{baseUrlOfYourInstance}/rest/api/content

https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html

Please search this forums if you are stuck, hope it helps, Thanks!

DKolesnikova August 22, 2024

Hello! I don't quite understand why I need PAT?

We want to implement OAuth 2.0 authentication using REST API

I found this in the documentation for JSM DC (https://docs.atlassian.com/jira-servicedesk/REST/5.17.2/ )

I also found a description of OAuth 2.0 authentication (https://confluence.atlassian.com/adminjiraserver/jira-oauth-2-0-provider-api-1115659070.html )

and setting up an incoming link (https://confluence.atlassian.com/adminjiraserver/configure-an-incoming-link-1115659067.html ), but I still don’t quite understand where it can be created and using what user role

TAGS
AUG Leaders

Atlassian Community Events