# HTTP POST: content-api Auth Using Access Tokens

**URL:** <https://forum.flowable.org/t/http-post-content-api-auth-using-access-tokens/3843>\
**Category:** Flowable Engine\
**Created:** [May 9, 2019, 6:06am UTC](https://forum.flowable.org/t/http-post-content-api-auth-using-access-tokens/3843 "2019-05-09T06:06:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinathganesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srinathganesh/32/2392_2.png) [@srinathganesh](https://forum.flowable.org/u/srinathganesh)\
**Post date:** [May 9, 2019, 6:06am UTC](https://forum.flowable.org/t/http-post-content-api-auth-using-access-tokens/3843/1 "2019-05-09T06:06:36Z")

</div>

My Current Python code to download a file is like this:

```auto
content_url = f"http://ip:port/flowable-task/content-api/content-service/content-items/file_name/data"
file_to_save = "file_path"
r = requests.get(url=content_url, auth=("uname", "pwd", ))

```

I dont wish to use username and password, is there a auth token that i can use?

* * *

I did find this [Authentication for api rest](https://forum.flowable.org/t/authentication-for-api-rest/999) BUT I deploy flowable via docker and am not interested to change the spring code.

---

<div class="post-metadata">

**Author:** ![dbmalkovsky](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/dbmalkovsky/32/31_2.png) [@dbmalkovsky](https://forum.flowable.org/u/dbmalkovsky)\
**Post date:** [May 9, 2019, 1:47pm UTC](https://forum.flowable.org/t/http-post-content-api-auth-using-access-tokens/3843/2 "2019-05-09T13:47:04Z")

</div>

Is there a reason you can’t include a _Authorization: Basic …​==_ HTTP-header when performing requests? Something similar to this for the admin/test user?

`Authorization: Basic YWRtaW46dGVzdA==`
