#2664-Additional Fields in Subscriber List API

Aji
IMPLEMENTED
#1
Aji

 Aji

Hi Konok,

Could you please add the following fields to the subscriber/list API response for each subscriber?

 

{
  "label_names": "VIP,AutoTestLabel",
  "assigned_agent_id": 12,
  "assigned_agent": "Support Agent"
}

 

If no label or agent is assigned, the respective fields can return null.

These details are already available at the subscriber level, so I think adding them to the list response should be a small change and hopefully won't take much time to implement.

This will help us retrieve all required subscriber information in a single API call instead of making additional requests for each contact.

Please check and add this when possible.

 

Thanks

#2
Kamrul Hasan

 Kamrul Hasan

#1

Aji

Dear User,


Thank you for your suggestion.

We have updated the Subscribers List API to include the assigned_agent_id for each subscriber.


However, it is not feasible to include label_names and assigned_agent in the list response. The Subscribers List API is designed to return lightweight data for better performance, and fetching label names and assigned agent names for every subscriber would require additional processing and database joins, which would significantly impact the response time, especially for large subscriber lists.


If you need the label names and assigned agent name for a subscriber, you can call the Get Subscriber API. This API returns the complete subscriber details, including the label names and the assigned agent information.


This approach keeps the Subscribers List API fast and efficient while still allowing you to retrieve the additional details when needed.


Thank you.