Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

How to call an external weebhook with script / button?

Topic Labels: Scripting extentions
592 3
Showing results for 
Search instead for 
Did you mean: 

Hello, i am trying to create users on Softr solution with their api script, i tried to put in a script on airtable but it show me an error.
I need to integrate records data (name, email etc.)

here is the code :

curl --request POST '' \
--header 'Softr-Api-Key: F00xq00gpZf8TLCFYsbsSa7CzRO' \
--header 'Softr-Domain:' \
--header 'Content-Type: application/json' \
--data-raw '{
  "full_name": "NAME-FIELD",
  "email": "EMAIL-FIELD",
  "password": "12345678",
3 Replies 3

It looks like you just publicly posted an API key. If this was your actual API key (versus a dummy documentation key) I recommend that you change it immediately.

As for calling a webhook from scripting, you need to change the CURL request to a JavaScript fetch request. It is a very different format. You can Google how to convert a CURL request to a fetch request.

thank you
no its an edited api key, i add some caracters :slightly_smiling_face:

i used a website that convert to fetch (cURL to Fetch)

fetch("", {
  headers: {
    "Content-Type": "application/json",
    "Softr-Api-Key": "F00xq00gpZf8TLCFYsbsSa7CzRO",
    "Softr-Domain": ""
  method: "POST"

i can see that the parameters are gone :/
i need to parse those data from every record 

any advice ?

@JAN - have a look at this post - it has a similar goal and gives you the fetch pattern you need. You need an additional attribute on the fetch options for body (which contains the data you want to POST to the API.