# Webhooks and Formulas

**URL:** <https://community.fibery.io/t/webhooks-and-formulas/63>\
**Category:** Misc\
**Created:** [December 12, 2018, 7:41am UTC](https://community.fibery.io/t/webhooks-and-formulas/63 "2018-12-12T07:41:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickcogley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rickcogley/32/274_2.png) [@rickcogley](https://community.fibery.io/u/rickcogley)\
**Post date:** [December 12, 2018, 7:41am UTC](https://community.fibery.io/t/webhooks-and-formulas/63/1 "2018-12-12T07:41:58Z")

</div>

Could someone please give me an example of how to set up webhooks and formulas?

For example, let’s say I have a slack app, which has an incoming webhook facility included. Their webhooks expect a certain json data format per their api, and needs a couple headers set. How do I make that happen in Fibery webhooks?

```bash
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/TE1231234U/BE1234H18/m1234A1234J1234U1234cLL

```

Often, webhooks require some API token to work, and, I would rather not store that in the open. Can Fibery be made to store variables for this kind of purpose?

Regarding formulas, what is this feature for, generally speaking? Are they fields that use, like, Targetprocess expressions?

Or, are these simply visible but not finished enough to use…

---

<div class="post-metadata">

**Author:** ![shotkin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/shotkin/32/12_2.png) [@shotkin](https://community.fibery.io/u/shotkin)\
**Post date:** [December 16, 2018, 8:14pm UTC](https://community.fibery.io/t/webhooks-and-formulas/63/2 "2018-12-16T20:14:08Z")

</div>

Hi!  
I’m sorry for delayed answer.  
Currently webhooks and formula are not finished yet, they are in progress.

WebHooks:  
For now webhooks app just sends fibery effects in predefined shape to callback url without requiring any auth assuming that url itsself is a secret.

```
Example of json body for web hook request which is called with fibery update effect:
{"effect" "fibery.object/update"
 "id" "7537a430-5832-11e8-bfd3-7f303b2ec6ef",
 "type" "kanban/feature"
 "values" {"kanban/name" "feature123"}}

 There are following effect types:
 "fibery.object/create"
 "fibery.object/update"
 "fibery.object/delete"
 "fibery.object/attach"
 "fibery.object/detach"
 where each has its own data shape and web hooks can receive only these effects.

```

Formulas:  
You can create formulas and attach them to fields, in formula you can calculate simple arithmetic expression referencing fields from the same entity or aggregates for child entities reachable from the target entity filtered by some predicate.

---

<div class="post-metadata">

**Author:** ![rickcogley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rickcogley/32/274_2.png) [@rickcogley](https://community.fibery.io/u/rickcogley)\
**Post date:** [December 17, 2018, 12:27pm UTC](https://community.fibery.io/t/webhooks-and-formulas/63/3 "2018-12-17T12:27:15Z")

</div>

Thanks @shotkin

So for formulas, you’re talking about sum/avg/max/min on some field from child records.

Is the language described somewhere?

---

<div class="post-metadata">

**Author:** ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)\
**Post date:** [December 17, 2018, 1:04pm UTC](https://community.fibery.io/t/webhooks-and-formulas/63/4 "2018-12-17T13:04:00Z")

</div>

@rickcogley So far this is very low-level language that we are not willing to open. We will implement human-friendly version in the next 2-3 months.

---

<div class="post-metadata">

**Author:** ![rickcogley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rickcogley/32/274_2.png) [@rickcogley](https://community.fibery.io/u/rickcogley)\
**Post date:** [December 18, 2018, 11:34am UTC](https://community.fibery.io/t/webhooks-and-formulas/63/5 "2018-12-18T11:34:03Z")

</div>

Sure thing, @mdubakov. You’ve got plenty to do 🙂

---

<div class="post-metadata">

**Author:** ![Pagandai\_V\_Pannirsel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/pagandai_v_pannirsel/32/177_2.png) [@Pagandai\_V\_Pannirsel](https://community.fibery.io/u/Pagandai_V_Pannirsel)\
**Post date:** [April 24, 2019, 5:06pm UTC](https://community.fibery.io/t/webhooks-and-formulas/63/6 "2019-04-24T17:06:00Z")

</div>

good idea need to be an app that can be easily reconected , reused

---

<div class="post-metadata">

**Author:** ![Pagandai\_V\_Pannirsel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/pagandai_v_pannirsel/32/177_2.png) [@Pagandai\_V\_Pannirsel](https://community.fibery.io/u/Pagandai_V_Pannirsel)\
**Post date:** [July 5, 2019, 10:55am UTC](https://community.fibery.io/t/webhooks-and-formulas/63/7 "2019-07-05T10:55:56Z")

</div>

@mdubakov there is need also humen friendly , webhook i, url is not one based an api even related that need more json , not user friendly .
