# Can't use Bubble's API Connector OAuth 2.0 with DropBox?

**URL:** <https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859>\
**Category:** APIs\
**Created:** [January 5, 2023, 12:27am UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859 "2023-01-05T00:27:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tyler1/32/120884_2.png) [@Tyler1](https://forum.bubble.io/u/Tyler1)\
**Post date:** [January 5, 2023, 12:27am UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/1 "2023-01-05T00:27:06Z")

</div>

Has anyone successfully connected Dropbox’s API with Bubble’s API Connector?

When trying to authenticate using an OAuth2 User-Agent Flow, I get the following error:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/3/63b54f7e49288826a3fa1e886b3103d57277ca39.png)

Now, for anyone who hasn’t worked with Dropbox’s API, they do have one unique characteristic where they seem to use POST where you might otherwise expect a GET. Although, I’m hoping that’s not the problem here.

This is my current setup in the Bubble API Connector:

 ![Screenshot 2023-01-04 172422](https://us1.discourse-cdn.com/bubble/original/3X/a/a/aaca51ee66fc0972e73aff62ac967177b6b89f06.png)

Honestly, I’m only using OAuth because DropBox doesn’t seem to supply long-lived tokens anymore. I don’t need users to access their DropBox accounts, this is all only for personal use and will only use my account. So, if anyone knows how to generate a long-lived token that would be great too. I’ve gotten all my calls to work with short-lived API tokens generated from my DropBox App Console. Just wish they’d let me generate a long-lived token.

Thanks!

---

<div class="post-metadata">

**Author:** ![vitinho6f](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vitinho6f/32/188667_2.png) [@vitinho6f](https://forum.bubble.io/u/vitinho6f)\
**Post date:** [September 23, 2023, 3:37pm UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/2 "2023-09-23T15:37:16Z")

</div>

Hi Tyler

I’m using this API too, I configured these URLs a little bit different.

 ![Imagem do WhatsApp de 2023-09-23 à(s) 12.36.04](https://us1.discourse-cdn.com/bubble/original/3X/d/7/d77584484662e58d5cffaadee4844b12782bbb4b.jpeg)

But I didn’t have sucess, I received this error

![Imagem do WhatsApp de 2023-09-23 à(s) 12.35.53](https://us1.discourse-cdn.com/bubble/original/3X/f/a/fa969569c2bdc6e025afa0e4056300fa062cdb9c.jpeg)

You have a solution for this API?

---

<div class="post-metadata">

**Author:** ![Tyler1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tyler1/32/120884_2.png) [@Tyler1](https://forum.bubble.io/u/Tyler1)\
**Post date:** [September 24, 2023, 4:03am UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/3 "2023-09-24T04:03:16Z")

</div>

I never got it to work.

Instead, I used Make to handle all my Dropbox calls and I just setup webhooks to keep all the functionality I needed within Dropbox.

You could use Zapier or any other API product as well, Make is just much cheaper and has performed very well for me with high volumes as a middle-man in cases like this.

This is obviously much less efficient, but it works. I’d love for someone to figure out Dropbox authentication within Bubble though.

Here’s an example of a call I make:

1. Bubble makes a call to Make  

2. Make performs the Dropbox calls I need.  

3. Make responds with JSON formatted responses I can use in Bubble to continue workflows.

---

<div class="post-metadata">

**Author:** ![keystone.jesus](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keystone.jesus/32/120199_2.png) [@keystone.jesus](https://forum.bubble.io/u/keystone.jesus)\
**Post date:** [November 10, 2023, 11:45am UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/4 "2023-11-10T11:45:38Z")

</div>

![Capturar](https://us1.discourse-cdn.com/bubble/original/3X/b/d/bdcff712c28797cd81a2ce6088db1f8b75af9c26.jpeg)

I tried many methods but without success.

The alternative was to use n8n to renew the temporary Token, it can easily make the call to dropbox.

1 - Carry out the token renewal call every 3 hours

2- Send the token to my bubble database.

---

<div class="post-metadata">

**Author:** ![Tyler1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tyler1/32/120884_2.png) [@Tyler1](https://forum.bubble.io/u/Tyler1)\
**Post date:** [November 10, 2023, 7:36pm UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/5 "2023-11-10T19:36:22Z")

</div>

Interesting. I think I like your implementation better than mine, as it’s cleaner and keeps more actions contained within Bubble.

In addition, polling a key every three hours probably isn’t as resource heavy as my more complex “on-demand” method… as long as you have enough traffic to supersede the poll anyway.

Thanks for the tip!

---

<div class="post-metadata">

**Author:** ![keystone.jesus](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keystone.jesus/32/120199_2.png) [@keystone.jesus](https://forum.bubble.io/u/keystone.jesus)\
**Post date:** [November 10, 2023, 9:31pm UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/6 "2023-11-10T21:31:41Z")

</div>

![1](https://us1.discourse-cdn.com/bubble/original/3X/9/5/9525698f882619ed7842e6eaa47a817d9f71480c.jpeg)

I just managed to renew the token via the api  
connector

1 - Pass the Header  
key: Content-type  
value: application/x-www-form-urlencoded

2 - Add the “Json” Parameters by checking the “Queryst.”

 ![2](https://us1.discourse-cdn.com/bubble/original/3X/e/9/e99091febfe5d163b6faf08c53c46b992180df68.jpeg)

Now I can renew automatically with Worflow API

We already have some solutions lol

---

<div class="post-metadata">

**Author:** ![paulsvassistant](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@paulsvassistant](https://forum.bubble.io/u/paulsvassistant)\
**Post date:** [March 25, 2024, 4:31pm UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/8 "2024-03-25T16:31:23Z")

</div>

Hello I want to implement this solution that has worked for you… Can you or someone help me understand how the outer API configuration should look like? Mine looks like the screenshot, but I am getting an error: {“error”: “invalid\_request”, “error\_description”: “unknown field "access\_token"”}

 ![Screenshot 2024-03-25 at 9.26.28 AM](https://us1.discourse-cdn.com/bubble/original/3X/f/a/fa17329bf24f5d39df86f63d01ce9545d719e5f2.png)

---

<div class="post-metadata">

**Author:** ![keystone.jesus](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keystone.jesus/32/120199_2.png) [@keystone.jesus](https://forum.bubble.io/u/keystone.jesus)\
**Post date:** [March 25, 2024, 4:38pm UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/9 "2024-03-25T16:38:10Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/6/6/663cac8dd5e06c68838790a57bf98a016a834d76.png)

use the instructions in this tutorial to generate the token: [https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586)

---

<div class="post-metadata">

**Author:** ![paulsvassistant](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@paulsvassistant](https://forum.bubble.io/u/paulsvassistant)\
**Post date:** [March 25, 2024, 4:43pm UTC](https://forum.bubble.io/t/cant-use-bubbles-api-connector-oauth-2-0-with-dropbox/239859/10 "2024-03-25T16:43:49Z")

</div>

Many thanks!!!
