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.

    Use credentials created in the region selected above. Changing the documentation region updates examples; it does not move your account or resources.

    POSThttps://wapi.simplysend.email/web-setup/contacts/subscription-groups/{subscriptionGroupId}/subscriptions

    Parameters

    string
    The unique ID of the subscription group (path parameter).
    string
    Existing contact email address to subscribe.* Either email, phone, or contactIdentifier must be provided.
    string
    Existing contact phone number to subscribe.* Either email, phone, or contactIdentifier must be provided.
    string
    Existing contact identifier (e.g. 'email_<md5>' or 'phone_<md5>').* Either email, phone, or contactIdentifier must be provided.
    boolean
    Whether the subscription is active. Defaults to true.
    string
    Optional consent method to sync to the contact profile. Valid values: 'double_opt_in', 'single_opt_in', 'imported', 'web_form', 'implicit_api', 'other'.
    string
    Optional consent details or audit notes to sync to the contact profile (e.g. 'Footer newsletter signup form').
    RequestPOST
    Response