Skip to main content
Contributor I
February 27, 2024
Beantwortet

How to subscribe user to segment via API

  • February 27, 2024
  • 3 Antworten
  • 305 Ansichten

I have successfully subscribed a user to a list via the api and profile-subscription-bulk-create-job task.

 

However my client is using segments and the API doesn’t seem to allow me to use a segment ID and subscribe them. Is this true?

 

Is there another way to subscribe a user to a segment via the API?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von saulblum

You can update profiles with Create or Update Profile

And use Create Event to send events

3 Antworten

Klaviyo Employee
February 27, 2024

Hi, segments are dynamic groups of profiles based on their profile properties and/or events the profiles have done, so you can’t explicitly add a profile to a segment; you have to update the profile’s properties or add events to the profile so the profile meets the definition of a given segment.

redwireAutor
Contributor I
February 27, 2024

Thanks for your prompt answer. Is it possible to do what you’re saying via the API? If yes could you point me in the right direction in the API docs?

saulblumAntwort
Klaviyo Employee
February 27, 2024

You can update profiles with Create or Update Profile

And use Create Event to send events