APIs & Integrations

BodhiTesting
Member

+ symbol not working in request url for Get a batch of contacts by email address callout

0 Upvotes
1 Reply 1
Willson
HubSpot Employee
HubSpot Employee

+ symbol not working in request url for Get a batch of contacts by email address callout

Hey @BodhiTesting 

 

When using the '+' symbol, you'll need to ensure you're encoding this correctly. Changing the request to the following should allow this to work:

https://api.hubapi.com/contacts/v1/contact/emails/batch/?email=testinga%2Bpis@hubspot.com&hapikey={{hapikey}}

I've just tested this out on a test contact in my own portal and it successfully returned the contact using the above URL.

 

I hope this helps!

Product Manager @ HubSpot
0 Upvotes