stack

Home > @infiniteobjects/klaviyo-service > KlaviyoService > subscribeToList

KlaviyoService.subscribeToList() method

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>;

Parameters

Parameter Type Description
list string ListId to subscribe the profile to.
profile KlaviyoProfile Klaviyo Profile see: KlaviyoProfile

Returns:

Promise<void>

Remarks

This should be use when we collect emails via a form.