Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LeadBI Form Webhook
fetch("https://capi.leadbi.com/forms/{replace_with_form_id}/submit", {
"headers": {
"content-type": "application/json",
},
"body": "{\"first_name\":{\"value\":\"Andrei\",\"name\":\"first_name\",\"type\":\"first_name\"},\"last_name\":{\"value\":\"Tofan\",\"name\":\"last_name\",\"type\":\"last_name\"},\"email\":{\"value\":\"admin@leadbi.com\",\"name\":\"email\",\"type\":\"email\"},\"phone\":{\"value\":\"+00723232322132\",\"name\":\"phone\",\"type\":\"phone_number\"}}",
"method": "POST"
});
curl 'https://capi.leadbi.com/forms/{replace_with_form_id}/submit' \
-H 'Content-Type: application/json' \
--data-binary '{"first_name":{"value":"John","name":"first_name","type":"first_name"},"last_name":{"value":"Doe","name":"last_name","type":"last_name"},"email":{"value":"jd@leadbi.com","name":"email","type":"email"},"phone":{"value":"+9384937593","name":"phone","type":"phone_number"}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment