# How can I connect Thunkable with Supabase

**URL:** <https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900>\
**Category:** Questions about Thunkable X\
**Created:** [September 26, 2023, 4:04pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900 "2023-09-26T16:04:48Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [October 8, 2023, 3:02pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/22 "2023-10-08T15:02:25Z")

</div>

Yes great - But before i do that… No i have the headers in the template …  
And those look OK right ??

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/160a451e21ff6144876adf5b40874030b7813554.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 8, 2023, 4:51pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/23 "2023-10-08T16:51:27Z")

</div>

These look good to me. Did that work for you?

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [October 8, 2023, 6:12pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/24 "2023-10-08T18:12:01Z")

</div>

No it did not  
I have tried a million version of URLs to see if i can get anything to work.  
But no, Either the response is empty or refering to the message;  
{“message”:“No API key found in request”,“hint”:“No apikey request header or url param was found.”}

So i am stuck… ☹

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 8, 2023, 7:24pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/25 "2023-10-08T19:24:52Z")

</div>

Wait. Why do you need an api key? That plus the bearer token seems like a little extra

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [October 8, 2023, 7:33pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/26 "2023-10-08T19:33:00Z")

</div>

Thats my question to…  
I dont get it…  
And where do my selection (for GET) GO?  
Or the same for POST…  
Strange

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 8, 2023, 7:52pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/27 "2023-10-08T19:52:10Z")

</div>

hopefully this can help you get started

an example of a GET to read all rows  
[https://x.thunkable.com/copy/c29456ec15d6d91887d595e1400c1df4](https://x.thunkable.com/copy/c29456ec15d6d91887d595e1400c1df4)

 ![Screen Shot 2023-10-08 at 3.58.16 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/1/81904e294ec83faa4e7babaad8fa84cbfa2dc91b.jpeg)  
 ![Screen Shot 2023-10-08 at 3.58.24 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c233373a52b9639368436c81b09f66ab4e2ce85.jpeg)

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [October 8, 2023, 8:02pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/28 "2023-10-08T20:02:03Z")

</div>

Ok i’ll check this out. I believe i tried it allready  
But i do that and let you know…

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 8, 2023, 8:05pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/29 "2023-10-08T20:05:07Z")

</div>

You can actually test my example and see that it works

I am using a table without row level security turned on. It’s identical when rls is turned on but you’d probably pass a user token and not the public key

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [October 9, 2023, 5:24am UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/30 "2023-10-09T05:24:57Z")

</div>

i can confirm it works if:

1. Bearer is NOT used before the key in Authorization - Stick with the key only
2. Disable the Row Level Security (RLS)  
Those two actions in enough to get you going and test. You would probably want the RLS enable at a certain point but i have not tried that one yet.

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [October 9, 2023, 11:01am UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/31 "2023-10-09T11:01:39Z")

</div>

Thank you @jared for the solution. works fine now. Need to figure out the sorting …  
Small question in addition  
In supabase -H stands for “headers” but how shall i interpret “-d” Like in “-d ‘[{ “some\_column”: “someValue” }, { “other\_column”: “otherValue” }]’”  
It is related to the querie but i dont know where to put it in the call - Or is it under Header any ways ?

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [October 9, 2023, 2:35pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/32 "2023-10-09T14:35:13Z")

</div>

> [@stefansladdeneng1](#):
>
> In supabase -H stands for “headers” but how shall i interpret “-d”

-d is for body

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 9, 2023, 5:07pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/33 "2023-10-09T17:07:52Z")

</div>

Hey!

-d would be the body of the request that you are sending. this is also typically reserved for _sending_ data in a POST/PATCH request. [Not useful to GET data](https://stackoverflow.com/a/983458)

For supabase, using PostgREST, you’ll send your query constraints in the URL itself

[https://x.thunkable.com/projectPage/652308d92ecc34478bef887d](https://x.thunkable.com/projectPage/652308d92ecc34478bef887d)  
the above example demo’s how to GET data from your supabase DB using a simple RLS policy of authenticated users only.

i will include a screenshot of the relevant blocks below

 ![Screen Shot 2023-10-09 at 1.07.16 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/1/31989602cf8f1657e1f4a50ae8aa04444b787838.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [January 7, 2024, 5:08pm UTC](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900/34 "2024-01-07T17:08:14Z")

</div>

Closed on January 7, 2024, 5:08pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.thunkable.com/t/how-can-i-connect-thunkable-with-supabase/2614900.md?page=1)
