Skip to main content
Contributor I
February 27, 2024
Solved

How to subscribe user to segment via API

  • February 27, 2024
  • 3 replies
  • 297 views

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?

This topic has been closed for replies.
Best answer by saulblum

You can update profiles with Create or Update Profile

And use Create Event to send events

3 replies

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.

redwireAuthor
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?

saulblumAnswer
Klaviyo Employee
February 27, 2024

You can update profiles with Create or Update Profile

And use Create Event to send events