# Getting 503 error while calling confluence API

**URL:** <https://community.developer.atlassian.com/t/getting-503-error-while-calling-confluence-api/49429>\
**Category:** Confluence Cloud\
**Tags:** template, oauth2, 3lo, rest-api\
**Created:** [June 30, 2021, 3:50pm UTC](https://community.developer.atlassian.com/t/getting-503-error-while-calling-confluence-api/49429 "2021-06-30T15:50:28Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![PrzemysawKanach](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@PrzemysawKanach](https://community.developer.atlassian.com/u/PrzemysawKanach)\
**Post date:** [July 12, 2021, 12:53pm UTC](https://community.developer.atlassian.com/t/getting-503-error-while-calling-confluence-api/49429/18 "2021-07-12T12:53:18Z")

</div>

Hello,

I recently created the topic about related problem here: [Downloading attachments content using OAuth2 from the Confluence - #5 by PrzemysawKanach](https://community.developer.atlassian.com/t/downloading-attachments-content-using-oauth2-from-the-confluence/49572/5) but this place seems to be fine to address it.

So the breaking changes described here made that downloading attachments’ content is no longer possible using `download_link` because it doesn’t work with the OAuth token.

Are there any plans to fix the issue or you have any advice how to download attachments content using OAuth token?

The code which doesn’t work any more:

```bash
curl --location --request GET '<MY_INSTANCE>/rest/api/download/attachments/<ATTACHMENT_ID>/sample.pdf?version=1&modificationDate=1615204617358&cacheVersion=1&api=v2' \
--header 'Authorization: Bearer TOKEN'

```

Thank you in advance,  
Cheers

---

_[View the full topic](https://community.developer.atlassian.com/t/getting-503-error-while-calling-confluence-api/49429)._
