# Using a Call API action in workflow with webhook trigger

**URL:** <https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547>\
**Category:** Ask for Help\
**Tags:** api\
**Created:** [January 26, 2025, 11:39am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547 "2025-01-26T11:39:07Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 26, 2025, 11:39am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/1 "2025-01-26T11:39:07Z")

</div>

I have a workflow that is triggered by a webhook.

I want to use the response to that webhook in a subsequent call API step.  
I need to use a JSON query to get a value from the webhook response and then use that in my API call.  
I then need to store that response in my table.

Is that possible? It doesn’t look like I can do it.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 26, 2025, 11:41am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/2 "2025-01-26T11:41:26Z")

</div>

Yes, that should be possible. How far have you gotten with it so far?

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 26, 2025, 12:20pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/3 "2025-01-26T12:20:01Z")

</div>

![Screenshot 2025-01-26 at 23.19.44](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b1d309db349750179133c572de0116fe9fb7706c.png)

How do I get the result?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 26, 2025, 12:32pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/4 "2025-01-26T12:32:16Z")

</div>

If you add a Query JSON step, you should be able to point it at the Call API step and access the return value.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 26, 2025, 11:15pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/5 "2025-01-26T23:15:23Z")

</div>

Do you know what causes this type of error? I couldn’t find a reference to that XFs…

 ![Screenshot 2025-01-27 at 10.12.06](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/2/1232d17b174048411375e692fdf6f74c5c3da112.png)

Here is the JSON I thought I was referencing:

 ![Screenshot 2025-01-27 at 10.14.38](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/9/e94ed7f632184280a92c862cbd9db59dc129fc19.png)  
(see “company\_name”)

 ![Screenshot 2025-01-27 at 10.15.13](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/3/e3f1d529acf4dc86b1bb7be8072fb963b85c28ba.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 26, 2025, 11:19pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/6 "2025-01-26T23:19:45Z")

</div>

Looks the return value is not being recognised as valid JSON. Try passing it through a JSON Parse step first.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 26, 2025, 11:24pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/7 "2025-01-26T23:24:26Z")

</div>

Thanks. The [Glide docs](https://www.glideapps.com/docs/automation/integrations/json) don’t seem to account for using a Query JSON action in a workflow triggered by a webhook so I appreciate your help.

Which action do I use?

 ![Screenshot 2025-01-27 at 10.24.47](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/e/ee7cabd7641107666ab7450b8d1b0792a08b5e0a.png)

I’ll try the parse step (I can’t see why it isn’t valid JSON in the first place).

Is the value in the JSON field correct?

 ![Screenshot 2025-01-27 at 10.21.26](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/6/069378258532456c6cdde983f6cf4164e6dbf41f.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 26, 2025, 11:34pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/8 "2025-01-26T23:34:19Z")

</div>

> [@blairrorani](#):
>
> Which action do I use?

haha, oops! Sorry, my bad - there is no such thing. I must have had Make in my head (which does have a JSON Parse module).

> [@blairrorani](#):
>
> Is the value in the JSON field correct?

It does look correct, yes.  
But why are you targeting the Add Row step with the Query JSON?  
I think that’s where the problem is - the Add Row will be returning a RowID value, and that certainly isn’t valid JSON.  
You need to target the Call API step.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 26, 2025, 11:36pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/9 "2025-01-26T23:36:51Z")

</div>

I think I found the solution.

The JSON input should be the request body rather than the **add row to company\_data** step because that doesn’t have any response that I can see.

 ![Screenshot 2025-01-27 at 10.35.45](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/0/705e078789c170f4971d13750d8bccc35dc7d11f.png)

Next to solve the Call API error 🤪

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 27, 2025, 12:02am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/10 "2025-01-27T00:02:28Z")

</div>

Can you show us what’s the error in the Call API step? How are you referencing the previous step’s value in the Call API step?

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 27, 2025, 12:40am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/11 "2025-01-27T00:40:23Z")

</div>

The Call API step seems to work correctly.

Here is how it is set up:

 ![Screenshot 2025-01-27 at 11.38.16](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/7/97eb58687cd81ed023e231811f8054b5d922031d.png)

–

 ![Screenshot 2025-01-27 at 11.39.28](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/7/07be087e54b76e358eec1adb9d6e981a950bbe8c.png)

What I’m stuck on his how to store that value from the Response Body in my row. Row is – and I can’t select a row (I actually want to specify a column to set the values).

 ![Screenshot 2025-01-27 at 11.45.11](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/80d2335d4ef7276176fe92d98663d7195b95646a.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 27, 2025, 2:53am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/12 "2025-01-27T02:53:49Z")

</div>

> [@blairrorani](#):
>
> What I’m stuck on his how to store that value from the Response Body in my row. Row is – and I can’t select a row (I actually want to specify a column to set the values).

The way to do it is as follows:

- Query the table that you want to update, and apply one or more filters so only the row you want to update will be matched.
- Add a Single Value step, targeting the Query, and selecting First-\>Whole row
- Use a Set Column Values step, selecting the column you want to update via the previous Single Value step.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 27, 2025, 3:55am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/13 "2025-01-27T03:55:37Z")

</div>

Excellent, trying now.

How do I trigger a webhook from a workflow? I can’t see a way to add an authorization value to the header, I can only add a body.

 ![Screenshot 2025-01-27 at 14.51.29](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/a/1a6d71eb51e67944617a1f4e6e07926227cbd2a6.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 27, 2025, 5:15am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/14 "2025-01-27T05:15:20Z")

</div>

If it needs authentication headers, you should use Call API instead of a webhook.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 27, 2025, 5:16am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/15 "2025-01-27T05:16:19Z")

</div>

yes, however I was wanting to trigger another glide workflow (and I thought a webhook is the only way I can do that)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 27, 2025, 5:22am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/16 "2025-01-27T05:22:39Z")

</div>

You can use either Trigger Webhook or Call API.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [January 27, 2025, 10:20pm UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/17 "2025-01-27T22:20:09Z")

</div>

k so I can call a webhook’s url using a Call API action?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 28, 2025, 1:10am UTC](https://community.glideapps.com/t/using-a-call-api-action-in-workflow-with-webhook-trigger/79547/18 "2025-01-28T01:10:23Z")

</div>

Yes, you can. Just treat that URL like any other URLs you have used so far, with a POST call.
