# \[Solved\] How can I INSERT / POST data to Supabase?

**URL:** <https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208>\
**Category:** Web API's\
**Tags:** supabase\
**Created:** [October 11, 2023, 6:29am UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208 "2023-10-11T06:29:31Z")\
**Posts on this page:** 10\
**Page:** 1

<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 11, 2023, 6:29am UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/1 "2023-10-11T06:29:31Z")

</div>

I understand how to combine sql queries in one go using sql only. What i do not get is how to make a comination in url for the thunkable call to post in the supabase url.  
I want to insert into column XXX, value 111, column YYY, value 222. The command is available in Supabase docs - but not how to post from Thunkable.  
@jared probably 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 11, 2023, 12:40pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/2 "2023-10-11T12:40:51Z")

</div>

For an INSERT, it’s a POST call. What have you tried?

---

<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 11, 2023, 5:01pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/3 "2023-10-11T17:01:42Z")

</div>

Yes i know it is a POST rather than a get - But instead of SELECT\* i tried  
INSERT INTO (HIGHSCORE: Value ‘123’ and ALIAS: Value ‘Stefan’)  
Which did not work

---

<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 11, 2023, 5:04pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/4 "2023-10-11T17:04:03Z")

</div>

You must read the docs I shared in the other post dude.

You don’t use sql statements over the rest interface.

---

<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 11, 2023, 5:17pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/5 "2023-10-11T17:17:28Z")

</div>

I get that - But the docs does not tell us how to implement it with Thunkable…Does it ? Or do you meqan its only to do a Copy paste and it will work?

---

<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 11, 2023, 5:18pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/6 "2023-10-11T17:18:13Z")

</div>

See the video

https://www.loom.com/embed/180ff259631e490da4d4e7555891a68b

> [@Supabase Starter Template](https://community.thunkable.com/t/supabase-starter-template/2635363):
>
> [https://x.thunkable.com/projectPage/652308d92ecc34478bef887d](https://x.thunkable.com/projectPage/652308d92ecc34478bef887d) A basic template to show how to configure your blocks to: Execute User Authentication and Registration Execute GETs to grab data from a table using simple text-matching Include a User Auth Token to support the use of Row Level Security, making the data in your database more secure. Store data from an API to the Local table then display the data in a Data Viewer. Use the Data Viewer to display data in an onscreen popup Supabse RLS p…

---

<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 11, 2023, 5:28pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/7 "2023-10-11T17:28:36Z")

</div>

I get it Jared - But i do not see how you made it in the actual URL -

You where saying earlier that the POST variables where to be in the URL…  
But what you sent show variablas as part of the BODY.  
Its the POST part i need some conceptual guidence

The “GET” part is pretty clear to me and i get result

---

<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 11, 2023, 7:48pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/8 "2023-10-11T19:48:54Z")

</div>

that’s right.

to post data to your backend, you won’t put the new records data in the URL,

you will set the body of the API call

 ![Screen Shot 2023-10-11 at 3.48.10 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/41bc2cfd5ff3753caa7b42946c28ba3d1d52fba1.jpeg)

you can find the URL though if you are unsure in your supabase backend. go to the table. click the api tab at the top right. click the button that says BASH.

 ![Screen Shot 2023-10-11 at 3.49.21 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/3904d59844befd1b9613b59a4afd1474ea831c6e.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 12, 2023, 9:48pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/9 "2023-10-12T21:48:00Z")

</div>

4 posts were split to a new topic: [[Solved] How can I sort data coming from Supabase](https://community.thunkable.com/t/solved-how-can-i-sort-data-coming-from-supabase/2641381)

---

<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 10, 2024, 9:48pm UTC](https://community.thunkable.com/t/solved-how-can-i-insert-post-data-to-supabase/2638208/10 "2024-01-10T21:48:56Z")

</div>

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