# Bubble API connector giving 'unauthorized' error

**URL:** <https://forum.bubble.io/t/bubble-api-connector-giving-unauthorized-error/38239>\
**Category:** APIs\
**Created:** [September 18, 2018, 12:58pm UTC](https://forum.bubble.io/t/bubble-api-connector-giving-unauthorized-error/38239 "2018-09-18T12:58:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya.rajak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aditya.rajak/32/40586_2.png) [@aditya.rajak](https://forum.bubble.io/u/aditya.rajak)\
**Post date:** [September 18, 2018, 12:58pm UTC](https://forum.bubble.io/t/bubble-api-connector-giving-unauthorized-error/38239/1 "2018-09-18T12:58:56Z")

</div>

Hi Everyone,

I am integrating the third party API’s via Bubble’s API connector. Here is the process of the API:-  
Authentication:- None or self-handled

1. Login the user (Body:- username, password)
2. Generate the Tokens()
3. Upload the file(Generated Token)

I am successfully reached till the second step, but when I am trying to upload the file Bubble API connector is giving the following error.

 ![practicles%20%20%20Bubble%20Editor](https://us1.discourse-cdn.com/bubble/original/3X/2/a/2ac303e4ac891a0b3ec4286a3c91144b3808452d.png)

It’s also weird that this API call works using Postman and getting the response there.

Can anyone suggest what wrong here?

---

<div class="post-metadata">

**Author:** ![himanshu.s](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/himanshu.s/32/46828_2.png) [@himanshu.s](https://forum.bubble.io/u/himanshu.s)\
**Post date:** [October 5, 2018, 11:17am UTC](https://forum.bubble.io/t/bubble-api-connector-giving-unauthorized-error/38239/2 "2018-10-05T11:17:59Z")

</div>

Try to pass Cookie on the Header of the API call before CSRF token. This can help you to run the API.

All the Best.

---

<div class="post-metadata">

**Author:** ![manishhjambwal77](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@manishhjambwal77](https://forum.bubble.io/u/manishhjambwal77)\
**Post date:** [May 5, 2023, 7:08am UTC](https://forum.bubble.io/t/bubble-api-connector-giving-unauthorized-error/38239/3 "2023-05-05T07:08:35Z")

</div>

@himanshu.s How did you pass it before the api call. I am trying to pass the cookies in header but it is still giving me the authentication error. Can you please help me on this
