# Adding contact to list always returns invalid VIDs

**URL:** <https://community.hubspot.com/t/adding-contact-to-list-always-returns-invalid-vids/16916>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 25, 2019, 1:01pm UTC](https://community.hubspot.com/t/adding-contact-to-list-always-returns-invalid-vids/16916 "2019-10-25T13:01:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan0wens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonathan0wens/32/31851_2.png) [@jonathan0wens](https://community.hubspot.com/u/jonathan0wens)\
**Post date:** [October 25, 2019, 1:01pm UTC](https://community.hubspot.com/t/adding-contact-to-list-always-returns-invalid-vids/16916/1 "2019-10-25T13:01:36Z")

</div>

I am trying to add a contact to a list but I am always geting the same response no matter what request I make. I can add the same contact via the browser without issue. Here’s an example request that I am making:

POST /contacts/v1/lists/201/add HTTP/1.1  
Host: [api.hubapi.com](http://api.hubapi.com)  
Authorization:\<token removed\>  
Accept-Encoding: gzip, deflate  
User-Agent: CData Data Provider Engine - Accepts: gzip  
Content-Type: application/json  
Content-Length: 23

{ “vids”: [6224402] }

I’ve also tried the following POST data as well:

{ “emails”: [“\<some email\>”] }  
{ “vids”: [6224402], “emails”: [“\<some email\>”] }

This is the response I am receving for all of these requests:

{“updated”:[],“discarded”:[],“invalidVids”:[6224402],“invalidEmails”:[]}

Notably, the HubSpot server is able to resolve the VID when I just submit the email address so it’s especially weird that the VID is being reported as invalid. Am I missing something that is preventing this request from working?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 28, 2019, 9:02pm UTC](https://community.hubspot.com/t/adding-contact-to-list-always-returns-invalid-vids/16916/2 "2019-10-28T21:02:56Z")

</div>

Hi, @jonathan0wens.

Interesting… I used the same request and was able to add that contact to your list. I’ll DM you with screenshots of the request.

---

<div class="post-metadata">

**Author:** ![jonathan0wens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonathan0wens/32/31851_2.png) [@jonathan0wens](https://community.hubspot.com/u/jonathan0wens)\
**Post date:** [November 1, 2019, 8:21pm UTC](https://community.hubspot.com/t/adding-contact-to-list-always-returns-invalid-vids/16916/3 "2019-11-01T20:21:02Z")

</div>

After working with @IsaacTakushi on this, we found that the user I was connecting with was missing the Marketing permission so even though I could see the lists, I couldn’t add to them. In the end, this combination of permissions allowed the request to go through successfully:

Contacts  
Admin  
Sales  
Marketing
