# API / bearer token equivalent in bubble?

**URL:** <https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398>\
**Category:** APIs\
**Created:** [August 2, 2019, 2:22pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398 "2019-08-02T14:22:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauren2](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@lauren2](https://forum.bubble.io/u/lauren2)\
**Post date:** [August 2, 2019, 2:22pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/1 "2019-08-02T14:22:18Z")

</div>

Hi guys

Total beginner, learning more about the API’s I want to connect with bubble at the moment. I just started playing around on postman and getting some good results.

My Bubble question is this- an API I’m testing in postman has authorization type of:  
Type: bearer token. Token: my api key.

So I’m wondering what the proper authentication selection for this would be in Bubble.  
There is no option that mentions ‘bearer’.

Oauth2 custom token? Private key in header?..

Many thanks for any leads!

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [August 2, 2019, 2:29pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/2 "2019-08-02T14:29:50Z")

</div>

Can you give a link to the API?  
Or Screenshot of your postman setting  
Possible that is a Key in Header and you will set The key name Authorization and the value Bearer yourapikey  
but bearer can also be used in oAuth

---

<div class="post-metadata">

**Author:** ![lauren2](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@lauren2](https://forum.bubble.io/u/lauren2)\
**Post date:** [August 2, 2019, 2:34pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/3 "2019-08-02T14:34:11Z")

</div>

Hi @Jici

Thanks for getting back

Its webflow cms api [Webflow API and Documentation | Webflow](https://developers.webflow.com/#cms-api-reference)  
Im figuring out how to get data, but my goal is to actually post to webflow. So want to make sure I set the authorizations up correctly in Bubble.

![15%20AM](https://us1.discourse-cdn.com/bubble/original/3X/1/3/1333fdfa054440e8e4c5221fc5fa5a760822e3ff.png) ![26%20AM](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90a45c56d1e010781b6761de5386ed0507b0ffc2.png)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [August 2, 2019, 2:42pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/4 "2019-08-02T14:42:06Z")

</div>

The first way should work.  
You can also use Private key in URL and set  
Key name : access\_token and Key value: yourapikey

---

<div class="post-metadata">

**Author:** ![lauren2](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@lauren2](https://forum.bubble.io/u/lauren2)\
**Post date:** [August 2, 2019, 2:49pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/5 "2019-08-02T14:49:53Z")

</div>

Thanks again!!

Those would look like the attached screenshots?

1: private key in header  
2: private key in url

Curious is there any benefit to either way of doing it, or is it just a style choice?

 ![48%20AM](https://us1.discourse-cdn.com/bubble/original/3X/6/6/662464713671f89128ca0627005d96396d8e9371.png) ![48%20AM](https://us1.discourse-cdn.com/bubble/original/3X/2/6/26fae8325191b21d5962bb16f2dbc06fd5b08da9.png)

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [August 2, 2019, 2:54pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/6 "2019-08-02T14:54:41Z")

</div>

Put it in the header

Key = Authorizatiion  
Value = Bearer ds8a90dsajdklasjdklsjakl

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [August 2, 2019, 2:56pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/7 "2019-08-02T14:56:57Z")

</div>

the fist one need to be  
key name: Authorization and value: Bearer yourapikey

The url one is perfect (don’t forget to set the key in development key value too)

---

<div class="post-metadata">

**Author:** ![lauren2](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@lauren2](https://forum.bubble.io/u/lauren2)\
**Post date:** [August 2, 2019, 3:05pm UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/8 "2019-08-02T15:05:00Z")

</div>

@NigelG Oh ok I think I get how to add bearer in header.  
I assume that would look like this screenshot?

@Jici How do you know when you need to have development the key under development key value, vs not? Is that ever empty?

 ![22%20AM](https://us1.discourse-cdn.com/bubble/original/3X/a/a/aacf0206d7c58b850ba4af45c02abd122daad5a9.png)

---

<div class="post-metadata">

**Author:** ![tmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tmcdonough](https://forum.bubble.io/u/tmcdonough)\
**Post date:** [June 30, 2022, 7:54am UTC](https://forum.bubble.io/t/api-bearer-token-equivalent-in-bubble/63398/9 "2022-06-30T07:54:04Z")

</div>

What if my API has a refresh token endpoint? How can I use Bearer token auth with that?
