Contact Filter does not return contact if email has + in it

Hi There,

I tried to pull contact information with [v3] API using an email filter (/api/3/contacts?email=emailId+11@hotmail.com) but if an email has + character, it is not returning anything even if there is a record in the contact list.

Is it by design?? or maybe a bug?? because I am able to add a contact with + sign in an email but not able to retrieve it.

Thanks
Janak

1 Like

This is not a bug. The + character has a special meaning in a URL. A + translates to whitespace in all url encodings. If you want to use the literal + sign, you need to URL encode it to %2b

/api/3/contacts?email=emailId%2b11@hotmail.com will work.

More information

Understood! Thank you!