Home > @infiniteobjects/klaviyo-service > KlaviyoService > subscribeToList
Subscribes the given profile to a list.
In Klaviyo’s world “subscribing: means that the profile will need to accept the subscription via an email.
Signature:
subscribeToList(list: string, profile: KlaviyoProfile): Promise<void>;
Parameter | Type | Description |
---|---|---|
list | string | ListId to subscribe the profile to. |
profile | KlaviyoProfile | Klaviyo Profile see: KlaviyoProfile |
Returns:
Promise<void>
This should be use when we collect emails via a form.