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:

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, 6 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, 6 years ago

Many thanks Toby!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free