klaviyo / klaviyo-node-sdk

Node SDK for developers to use Klaviyo's Public API
https://developers.klaviyo.com/
14 stars 2 forks source link

Subscribe endpoint 10 profiles limitation #4

Closed rynocouse closed 1 year ago

rynocouse commented 2 years ago

After some testing it seems that ListsSegments.subscribe(listId, opts) will only send double opt-in emails to the first 10 profiles in the profiles array.

I've confirmed behavior also happens with a simple curl request:

curl --request POST \
     --url 'https://a.klaviyo.com/api/v2/list/[LIST_ID]/subscribe?api_key=[API_KEY]' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "profiles": [
         [10+ PROFILES_HERE]
     ]     
}'

Either this is an issue with the API or a know behavior and lacks the appropriate errors and documentation.

Ian-Montgomery-Klaviyo commented 1 year ago

We have a new api with a new subscription endpoint that should solve this error. It can be accessed with the new node sdk for that api

Read our Migrating from V1/V2 to the new Klaviyo APIs and Comparison between v1/v2 and new APIs.