Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST API curl example

Trying for the first time to do rest api using curl.

curl -u "" -H "Content-Type: application/json" ""

getting this response:

Basic authentication with passwords is deprecated. For more information, see:

The link is not very helpful, and everything I tried with api searching is very confusing.

I created an admin organization ID and API key in my administration settings but have no idea what to do with it?

2 answers

1 accepted

1 vote
Answer accepted

Hello @steveshourds,

Thank you for reaching out to Atlassian Community!

Just for us to better understand and help you with this issue, I would like to know more details about the endpoint you are using.

I see that you created an API Key on and that's is correct if you want to use the APIs from the documentation below:

Here is an example of the curl using the API key:

curl --request GET \
  --url '{Org ID}' \
  --header 'Authorization: Bearer 0a1bCdeFGhiJKLMNOPqR' \
  --header 'Accept: application/json'

If you want to use API for Service Desk Organizations, that is different from the above, then the API Token that you need to use is the one generated on your profile on

  curl --request GET \
  --url '' \
  --user '' \
  --header 'Accept: application/json'

Please, give it a try and let us know how it goes.


0 votes
Warren Community Leader Sep 22, 2020

Hi @steveshourds 

I don't use ServiceDesk, only Jira Software, but I think the concept is the same.

To use the API, you need to create an API token and then you use the combination of the email address and token. This needs to be 64-bit encoded before passing it to the API.

Is there any rest api available to commit a file into a repository. seems like no rest  post available for bit bucket server but we have found in bitbucket cloud, but unfortunately we dont have bitbucket cloud.


Any suggestion will be helpfull 

Hi @steveshourds


We are calling one rest put  to create a resource/file in repository  and working awesome in post man but from application we are getting 500 error from server.

Any suggestion will be helpfull.

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

638 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you