List segments

Your saved segments with name. Account Owners and Account Managers only.

GET https://cotlet.dev/api/v1/constant-contact/segments

read

Returns the segments of Contacts > Segments, one page per call. A segment picks contacts by criteria such as email activity, contact details, list membership or tags, and is evaluated again when an email sends. Use segment_id in list_contacts, add_contacts_to_list and send_email.

Parameters

Parameters: list_segments
NameTypeDescription
limit integer integer How many items to return per page.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/constant-contact/segments \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("constant-contact", "list_segments")
Node.js
const result = await cotlet.call('constant-contact', 'list_segments');
CLI
cotlet call constant-contact list_segments

Example response

JSON

{
  "segments": [
    {
      "segment_id": 4417,
      "name": "Webinar attendees"
    },
    {
      "segment_id": 4420,
      "name": "Opened in the last 90 days"
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.