# Missing List structure for building an API request

**URL:** https://community.triggre.com/t/missing-list-structure-for-building-an-api-request/330
**Category:** Support
**Created:** [May 15, 2023, 5:44pm UTC](https://community.triggre.com/t/missing-list-structure-for-building-an-api-request/330 "2023-05-15T17:44:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sven.brossi](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/sven.brossi/32/111_2.png) [@sven.brossi](https://community.triggre.com/u/sven.brossi)
#### Post date: [May 15, 2023, 5:44pm UTC](https://community.triggre.com/t/missing-list-structure-for-building-an-api-request/330/1 "2023-05-15T17:44:42Z")

</div>

Hi,

I encountered another issue while working on a direct ChatGPT API request for chat completion. According to the ChatGPT API documentation, the request should have the following parameter structure:

 ![Bildschirmfoto 2023-05-15 um 19.27.38](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/6e1e1b0bb6a0d4f6ffa672c75453eaa3be6d105a.png)

As you can see the messages parameter is defined as a library or list. I started to enter the following

 ![Bildschirmfoto 2023-05-15 um 19.31.09](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/4ce6ec1bcd2b814d72fb8b556b922433f3927908.png)

but when I want to define the messages list parameter I do not get the list option. I only get the “custom item” option

 ![Bildschirmfoto 2023-05-15 um 19.31.52](https://canada1.discourse-cdn.com/flex035/uploads/triggre/original/1X/18812516bf3f08a119184fa0c3f050be3c8681e7.png)

I still think it may work for an initial call but it will not allow me to make a chat.

Best regards,  
Sven

---

<div class="post-metadata">

### Author: ![Jesse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/jesse/32/88_2.png) [@Jesse](https://community.triggre.com/u/Jesse)
#### Post date: [May 15, 2023, 7:48pm UTC](https://community.triggre.com/t/missing-list-structure-for-building-an-api-request/330/2 "2023-05-15T19:48:49Z")

</div>

Hi @sven.brossi,

You need to have a list of data items to send a list. So choose _Property from flow part_ and select a list of data items.

This feature is however currently only available in beta if I am not mistaken. It should be released this week or the next.

---

<div class="post-metadata">

### Author: ![sven.brossi](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/sven.brossi/32/111_2.png) [@sven.brossi](https://community.triggre.com/u/sven.brossi)
#### Post date: [May 16, 2023, 8:25am UTC](https://community.triggre.com/t/missing-list-structure-for-building-an-api-request/330/3 "2023-05-16T08:25:17Z")

</div>

Hi @Jesse,

Thank you, in this case, I will wait until the functionality is available. I was confused as I could not add a list item in the input of the user flow and I also did not understand what would be the best type of entry field for a list item in the user flow.

Many thanks for your support.  
Sven

---

<div class="post-metadata">

### Author: ![Jesse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/jesse/32/88_2.png) [@Jesse](https://community.triggre.com/u/Jesse)
#### Post date: [May 19, 2023, 12:14pm UTC](https://community.triggre.com/t/missing-list-structure-for-building-an-api-request/330/4 "2023-05-19T12:14:09Z")

</div>

Hi @sven.brossi,

It’s your lucky day! 🙂 We just released the feature that you have been waiting for, and to make absolutely sure you know that it works, I decided to use your case in the demo video.

Have fun implementing ChatGPT and other complex APIs!
