# REST API - Query

**URL:** <https://community.weweb.io/t/rest-api-query/5180>\
**Category:** Ask us anything\
**Created:** [November 2, 2023, 9:14pm UTC](https://community.weweb.io/t/rest-api-query/5180 "2023-11-02T21:14:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cynthia.r](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@cynthia.r](https://community.weweb.io/u/cynthia.r)\
**Post date:** [November 2, 2023, 9:14pm UTC](https://community.weweb.io/t/rest-api-query/5180/1 "2023-11-02T21:14:43Z")

</div>

Hi need some help, i am trying to connect voiceflow to weweb via the api, its a post call and the issue i have is that i need to query this  
curl --request POST   
–url [https://analytics-api.voiceflow.com/v1/query/usage](https://analytics-api.voiceflow.com/v1/query/usage)   
–header ‘accept: application/json’   
–header 'authorization: VF.DM.####   
–header ‘content-type: application/json’   
–data ’  
{  
“query”: [  
{  
“name”: “interactions”,  
“filter”: {  
“projectID”: “653b6780b#######”  
}  
}  
]  
}  
’  
How do we do this in weweb, cannot figure it out.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 2, 2023, 9:27pm UTC](https://community.weweb.io/t/rest-api-query/5180/2 "2023-11-02T21:27:21Z")

</div>

**1. Get the REST API plugin**

 ![Screenshot 2023-11-02 at 22.21.43](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/ff9a19d714c0c75c6d8fe450af0baf970f880f89.png)

**2. Create a collection to make the call**

 ![Screenshot 2023-11-02 at 22.27.13](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/0daa3b4eafd28bb83e8cca72eba7d0a481ccb7c0.jpeg)

---

<div class="post-metadata">

**Author:** ![cynthia.r](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@cynthia.r](https://community.weweb.io/u/cynthia.r)\
**Post date:** [November 3, 2023, 8:03am UTC](https://community.weweb.io/t/rest-api-query/5180/3 "2023-11-03T08:03:06Z")

</div>

I am getting this error "message: “Cannot read properties of null (reading ‘reduce’)”

---

<div class="post-metadata">

**Author:** ![cynthia.r](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@cynthia.r](https://community.weweb.io/u/cynthia.r)\
**Post date:** [November 3, 2023, 9:08am UTC](https://community.weweb.io/t/rest-api-query/5180/4 "2023-11-03T09:08:33Z")

</div>

> [@cynthia.r](#):
>
> "message: “Cannot read properties of null (reading ‘reduce’)”

Actually, i got this to work, had to use raw body.
