When using the’ get a batch of contacts by email address’ endpoint if emails contained in the response have a ‘+’ in them the email gets truncated in the response.
For example if one of the emails I want contact info for is ‘john.doe+test@gmail.com’ the email that is returned for John doe in the response is ‘test@gmail.com’ instead of john.doe+test@gmail.com
Is there another way I can get this contacts full email back in the response form this endpoint? Or is this something that needs to be fixed in Hubspot’s api?
Hi @Kyle_Magnuson,
Can you confirm you’re encoding + signs as %2B in your queries?
I was able to successfully pull data for contacts with + in their email address by doing so:
[![]()
Encode Plus Sign.jpg1246x465 64.6 KB
](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/c/c9ad356da4812da24c3312cff367a5a594f07acf.jpeg)
If you don’t encode the + signs, HubSpot will search for emails which match the values that follow the sign. In your case, I suspect you have two contacts in your portal. One with john.doe+test@gmail.com and another with just test@gmail.com.
Hi, thanks @Isaac_Takushi, encoding the + signs correctly was the issue.