Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

Segment details with name

LeahR253
Rookie
0 Votes
Hi, Is there any way to search segments with the name with Constant Contact API V3? Currently, in the documentation, I am seeing only search by id GET /segments/{segment_id}. However, I don't keep the ids in my system. How can I get details with name ? Please let me know if there is any workarounds. Thanks,
1 REPLY 1
John__B
Employee
0 Votes

Hello LeahR253,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

When searching by an individual segment, the segment_id is required and there isn’t a way to search by segment name, however, you can retrieve a full list of segments from your account which includes the name and ID for each one by utilizing the GET all Segments request.

 

GET all Segments:

https://developer.constantcontact.com/api_reference/index.html#!/Segments/getAccountSegments

 

You can then take the segment_id for the specific segment you’re looking to retrieve details for and use it in the GET a Segment's Details request.

 

GET a Segment's Details:

https://developer.constantcontact.com/api_reference/index.html#!/Segments/getSegmentDetail

 

Please have a look and let us know if you have any other questions!

 

Regards,


John B.
API Support Specialist
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up