API ReferenceSubscriptionsAdd Subscription
Add Subscription
Add an existing contact globally in the directory to a subscription group list. This endpoint uses the POST method, returning 201 Created if a new subscription is created, and 200 OK if the contact is already subscribed. It returns 404 CONTACT_NOT_FOUND if the contact is not registered in the directory first.
POST
https://wapi.simplysend.email/web-setup/contacts/subscription-groups/{groupId}/subscriptionsParameters
groupIdRequiredstring
The unique ID of the subscription group (path parameter).
emailstring
Existing contact email address to subscribe. Either email, phone, or contactIdentifier must be provided.
phonestring
Existing contact phone number to subscribe. Either email, phone, or contactIdentifier must be provided.
contactIdentifierstring
Existing contact identifier (e.g. 'email_<md5>' or 'phone_<md5>'). Either email, phone, or contactIdentifier must be provided.
isActiveboolean
Whether the subscription is active. Defaults to true.
consentMethodstring
Optional consent method to sync to the contact profile. Valid values: 'double_opt_in', 'single_opt_in', 'imported', 'web_form', 'implicit_api', 'other'.
consentProofstring
Optional proof of consent text description to sync to the contact profile.
RequestPOST
Response
