Bulk Subscribe Profiles to List (batch)
documentedCreate a job to subscribe multiple profiles to a list.
POST /api/profile-subscription-bulk-create-jobsLists & Segmentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Klaviyo-API-Key {{KLAVIYO_API_KEY}}" \
-d '{"data": {"type": "profile-subscription-bulk-create-job", "attributes": {"custom_source": "{{$custom_source}}", "historical_import": {{$historical_import}}, "consented_at": "{{$consented_at}}", "profiles": {"data": [ {"type": "profile", "attributes": {"email": "{{$email}}", "subscriptions": {"email": {"marketing": {"consent": "SUBSCRIBED"}}}} } ] } }, "relationships": {"list": {"data": {"type": "list", "id": "{{$list_id}}"}} } } }'" ,
"response_length": "short"