# Output as JSON when invoking via a Webhook?

**URL:** <https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853>\
**Category:** Ask a question\
**Created:** [July 24, 2020, 5:01pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853 "2020-07-24T17:01:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxkatz](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@maxkatz](https://community.parabola.io/u/maxkatz)\
**Post date:** [July 24, 2020, 5:01pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/1 "2020-07-24T17:01:46Z")

</div>

Hello,

If a flow is invoked via a Webhook, is there an option to output JSON? I couldn’t find such option but wanted to confirm.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/brian/32/11_2.png) [@brian](https://community.parabola.io/u/brian)\
**Post date:** [July 24, 2020, 8:35pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/2 "2020-07-24T20:35:17Z")

</div>

That depends! If you want to export JSON to an API, then you can use an API Export, which is only able to send a JSON body with each request it makes.

---

<div class="post-metadata">

**Author:** ![maxkatz](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@maxkatz](https://community.parabola.io/u/maxkatz)\
**Post date:** [July 24, 2020, 8:48pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/3 "2020-07-24T20:48:07Z")

</div>

I saw this option but this requires another endpoint. I want to end a flow by returning plain (raw) JSON. I guess this requires being able to invoke a flow as an endpoint.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/brian/32/11_2.png) [@brian](https://community.parabola.io/u/brian)\
**Post date:** [July 24, 2020, 9:02pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/4 "2020-07-24T21:02:28Z")

</div>

Are you looking to have your flow respond to the webhook that was sent?

---

<div class="post-metadata">

**Author:** ![maxkatz](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@maxkatz](https://community.parabola.io/u/maxkatz)\
**Post date:** [July 24, 2020, 9:29pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/5 "2020-07-24T21:29:37Z")

</div>

Invoking a flow from a Webhook works.

I get this back:

```auto
{"data":{"success":true}}

```

Instead of this default message, I’d like to return a custom JSON (a result from my flow). It’s OK if this is not possible (yet).

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/brian/32/11_2.png) [@brian](https://community.parabola.io/u/brian)\
**Post date:** [July 24, 2020, 9:46pm UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/6 "2020-07-24T21:46:59Z")

</div>

Hey Max! That makes sense. That is not possible right now, and I don’t foresee it being added as a feature. Webhooks are meant, to my understanding, to be only used as 1 way communication. Sending back a success is what most other tools are expecting from a webhook they send.

Moreover, the time it would take to run a flow and send the result back would be way too long to keep that connection open for.

Best practice for now would be to send your result to an endpoint (could be another webhook on the other service) that is expecting these results.

---

<div class="post-metadata">

**Author:** ![maxkatz](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@maxkatz](https://community.parabola.io/u/maxkatz)\
**Post date:** [July 25, 2020, 12:09am UTC](https://community.parabola.io/t/output-as-json-when-invoking-via-a-webhook/853/7 "2020-07-25T00:09:56Z")

</div>

Thanks… makes sense.
