Make a request »

SubscriberService.CreateSubscriberWithDoubleOptIn

Create a subscriber and add a subscription to a specific mailing list in a double opt-in mode. Subscriber is created as pending and an email is sent to them with a link they can use to confirm their subscription. When they click that link, the pending flag is removed and any confirmation email and/or SMS is sent to them based on recipient settings and mailing list settings. If this method is called for a specific email before the subscriber confirms their subscription, another email with the confirmation link is sent. However if it's called after the subscriber confirms their subscription, no email is sent and the subscriber data is updated. If a given email is on opt-out list/all subscriber and subscription will not be created and confirmation link will not be sent. See code examples


URL Parameters

Http verb: POST
URI: Full url: http://se.api.anpdm.com/v1/subscribers/mailinglist/{mailingListId}/createWithDoubleOptIn
URL parameters:
mailingListIdStringID of the mailing list to which the subscriber will be added

Body parameters

Body parameters
subscriber
Subscriber that will be created

Password String The subscriber's password (optional)
Email String The subscriber's email address (required)
Name String The name of the subscriber (optional)
Format String The subscriber's desired format (optional)
CountryCode String The subscriber's country code (optional)
PhoneNumber String The subscriber's phone number (optional)
ExternalId String The subscriber's external ID (optional)
DemDataFields List
<DemDataField>
The subscriber's list of (optional) demographic data fields
Body Example

Response

Body parameters
returnsResponseID of the created subscriber
Body Example


Help

Code examples