Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get an authorization API?

Nicole Masarova June 11, 2018

How can I get an API that I insert into the code of a personal tool, that will ensure that there has to be some authentication to access the data provided by JIRA? Also, I can't find the API link for JIRA data. Sorry for so many questions and thanks.

1 answer

1 accepted

1 vote
Answer accepted
mschonarthatlassian
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2018

Hi Nicole,

When you use the REST API to interact with Jira Cloud, authentication will be always necessary to make sure that the user has access to the information being requested.

In your code, you could declare variables to request credentials that will be sent and used to validate the request.

For instance, this curl command will authenticate the user to then retrieve all the fields in the instance:

curl --user email@example.com:<api_token> \
  --header 'Accept: application/json' \
  --url 'https://your-domain.atlassian.net/rest/api/2/field'

We have developer links with REST API examples so I'd definitely recommend you to check'em out! These lists contain all the endpoints you can use to get information for Jira:

* https://developer.atlassian.com/cloud/jira/platform/rest/#about

https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/

Under Authentication you'll find the authentication options such as Basic Auth or oAuth.

I hope this was helpful, Nicole.

Be sure to ask if you have further questions about this!

 

Cheers,

Matheus Schonarth

Nicole Masarova June 11, 2018

Dear Matheus, 

Thank you so much for all of your help! It helped clear up so much help - thank you so much again! If anything comes up, I'll ask. 

Thanks,

Nicole

mschonarthatlassian
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2018

Hi Nicole,

You're very welcome! I'm really glad that I could help.

I'll be here if you need any further on this!

Cheers,

Matheus Schonarth

Suggest an answer

Log in or Sign up to answer