# How can I send multiple values for a Parameter in an API call?

**URL:** <https://community.hubspot.com/t/how-can-i-send-multiple-values-for-a-parameter-in-an-api-call/66835>\
**Category:** APIs & Integrations\
**Tags:** events, professional\
**Created:** [October 11, 2022, 4:45am UTC](https://community.hubspot.com/t/how-can-i-send-multiple-values-for-a-parameter-in-an-api-call/66835 "2022-10-11T04:45:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenFitted](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/glenfitted/32/32521_2.png) [@glenFitted](https://community.hubspot.com/u/glenFitted)\
**Post date:** [October 11, 2022, 4:45am UTC](https://community.hubspot.com/t/how-can-i-send-multiple-values-for-a-parameter-in-an-api-call/66835/1 "2022-10-11T04:45:57Z")

</div>

I am trying to retrieve email Events associated w/ a Campaign using [api.hubapi.com/email/public/v1/events](http://api.hubapi.com/email/public/v1/events). In doing so, however, I only want to retrieve “DELIVERED” or “OPEN” events. I can get all event types by not passing eventType, or either, by calling it with a specific eventType (see below).  
However, I cannot get both DELIVERED and OPEN events in one call. I suspect passing multiple parameter values is not specific to this API; however, I cannot find the proper syntax to pass the 2 (or more) parameter values in one call.

`https://api.hubapi.com/email/public/v1/events?eventType=DELIVERED&hapikey=demo&campaignId=13054799&appId=20185`

`https://api.hubapi.com/email/public/v1/events?eventType=OPEN&hapikey=demo&campaignId=13054799&appId=20185`

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 11, 2022, 9:04am UTC](https://community.hubspot.com/t/how-can-i-send-multiple-values-for-a-parameter-in-an-api-call/66835/2 "2022-10-11T09:04:33Z")

</div>

Hey [@](https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041)[glenFitted](https://community.hubspot.com/t5/user/viewprofilepage/user-id/126609)

I don’t feel it’s doable conditional logic but still you can try the below call →

[https://api.hubapi.com/email/public/v1/events?hapikey=demo&eventType=OPEN&eventType=DELIVERED](https://api.hubapi.com/email/public/v1/events?hapikey=demo&eventType=OPEN&eventType=DELIVERED)

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![glenFitted](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/glenfitted/32/32521_2.png) [@glenFitted](https://community.hubspot.com/u/glenFitted)\
**Post date:** [October 11, 2022, 4:29pm UTC](https://community.hubspot.com/t/how-can-i-send-multiple-values-for-a-parameter-in-an-api-call/66835/3 "2022-10-11T16:29:24Z")

</div>

Thanks for the response; afraid I’ve tried this syntax. It does not work.
