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

Given the /download link provided by _links of an attachment how to access data using curl

Emanuele Ruffaldi Apr 20, 2018


I have obtained a /download link as follows by using the REST API with /content/.../child/attachment

curl --user USER:PASS --url '

I have used the API token for the REST API request but which user an password should I try for the /download request (is the main user and password?)





2 answers

1 accepted

1 vote
Answer accepted
Dario Bonotto Atlassian Team Apr 20, 2018 • edited

Hi @Emanuele Ruffaldi,


Can you confirm you use the email address instead of the API token to authnticate?

This can indeed be the same as:


Also, if you already use the email address, you may have to add the Curl argument to follow redirect. E.g.

curl -D- -L -u EMAIL:API_TOKEN -X GET 


Let me know if this helps.



Emanuele Ruffaldi Apr 23, 2018

I missed the -L option.


Dario Bonotto Atlassian Team May 15, 2018

You are very welcome! :) 



0 votes
Emanuele Ruffaldi Apr 20, 2018 • edited Apr 23, 2018


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,038 views 7 17
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