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 ? Thanks,
Solved! Go to Solution.
Hello RusharK,
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,
Hello RusharK,
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,
Thanks for help. I am trying to create a segment, Please see request body below.
{
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up