Problems getting JIRA REST API to work

Hi all,

I'm doing some simple experimenting with JIRA's REST API, and all I can seem to get is 404 errors. I'm using Basic Authentication. If I purposely corrupt the username or password, I get "401 - Basic Authentication Failure," so this suggests to me the URL is correct, the API exists and is ready to accept requests from authorized users like me. I've tried simple stuff like

curl -D- -u myname:mypassword -X GET -H "Content-Type: application/json"


curl -D- -u myname:mypassword -X GET -H "Content-Type: application/json"

and other such things, and get nothing but a 404.

Any ideas about what I might be doing wrong?

1 answer

1 accepted

0 votes
Accepted answer

Mmm, you appear to be using Jira REST urls to contact a Confluence system...

For Confluence, try /rest/api/content

For Jira, your REST urls look right, except for starting with Confluence.

Doh! Thank you...

Boy, do I feel stupid :-(

It took me a while to spot it!  I was just fiddling with a REST interface and tried one of your calls which worked fine with localhost.  Did it three times before noticing!

Thanks so much!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,105 views 4 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you