Skip to main content
Answer

How to identify which contact(profile) is subscribed or not subscribed one?

  • June 28, 2023
  • 3 replies
  • 214 views

Devphoenix
Active Contributor III
Forum|alt.badge.img+4

Hi Team,

I have a use case related to the {{baseUrl}}/api/profiles/ endpoint. How can we identify which profiles are subscribed and which ones are not? Also, is it possible to fetch only the profiles from a specific list?

Best answer by Brian Turcotte

Hi @Devphoenix!

At this time, subscription status is not a valid field operator for filtering this endpoint - so that filter would have to be programmatically applied at your end. I will certainly forward this request to our Product team for consideration in future releases, however.

 

Best,

Brian

3 replies

Brian Turcotte
Forum|alt.badge.img+37

Hi @Devphoenix!
 

The subscription status of each profile will be displayed in the body of the response to a Get Profiles call. Example:

 

To get all the profiles in a List, simply use the Get List Profiles endpoint:

 

I hope this helps, and thanks for using the Community!

- Brian


Devphoenix
Active Contributor III
Forum|alt.badge.img+4
  • Author
  • Active Contributor III
  • June 30, 2023

Hi @Brian Turcotte,

Thank you for your response. We have a use case where we need to display all the details of only subscribed profiles. This means we need to filter the Get List Profiles API response to only include subscribed profiles and their associated data.

Thanks


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • Answer
  • June 30, 2023

Hi @Devphoenix!

At this time, subscription status is not a valid field operator for filtering this endpoint - so that filter would have to be programmatically applied at your end. I will certainly forward this request to our Product team for consideration in future releases, however.

 

Best,

Brian