Bug report: API v3 vs addresses with plusses

This is a valid email address: user+cm@example.com

When I make the following API call:
http://api.createsend.com/api/v3/subscribers/{list}.json?email=user+cm@example.com

I unexpectedly get the following result:
{"Code":1,"Message":"Invalid Email Address"}

I haven't tested thoroughly, but I believe that plussed addresses are handled as expected in CM web interfaces, just not in the API.

tobyb tobyb, 5 years ago

Hey phripley,

As described in the documentation, query string parameters such as the email address must be encoded with percent encoding. The decoded email address, as received by CM, would be 'user cm@example.com' which is not valid.

To correctly specify this email address you would use 'user%2Bcm%40example.com', so the call would be http://api.createsend.com/api/v3/subscribers/%7Blist%7D.json?email=user%2Bcm%40example.com

phripley phripley, 5 years ago

Many thanks Toby!

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098