Skip to main content
Solved

How to subscribe user to segment via API

  • February 27, 2024
  • 3 replies
  • 133 views

Forum|alt.badge.img+1

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?

Best answer by saulblum

You can update profiles with Create or Update Profile

And use Create Event to send events

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Forum|alt.badge.img+7
  • Klaviyo Employee
  • 169 replies
  • 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.


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 2 replies
  • 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?


Forum|alt.badge.img+7
  • Klaviyo Employee
  • 169 replies
  • Answer
  • February 27, 2024

You can update profiles with Create or Update Profile

And use Create Event to send events