Segments and API

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

Using the API it is easy to get which Groups were mailed with a particular mailing using
GET /#account_id/mailings/#mailing_id/groups
But that doesn't return the segments to which the mailing was sent.
Is there a way to return that data?
Photo of UTK- Communications and Marketing

UTK- Communications and Marketing

  • 12 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 0
  • 1
Photo of Kyle Gregory | Lipscomb University

Kyle Gregory | Lipscomb University, Champion

  • 99 Posts
  • 69 Reply Likes
Hey @UTK- Communications and Marketing

I think the endpoint you're looking for is segments:
GET /#account_id/mailings/#mailing_id/searches

My understanding is searches are segments. You'll see in the detail for a single mailing, there are fields for groups, members and searches.
GET /#account_id/mailings/#mailing_id

Hope that helps. Let me know if you query to that endpoint returns your segments. I don't currently have a mailing I can test that on, so I'm interested.

Thanks,
Kyle
Photo of UTK- Communications and Marketing

UTK- Communications and Marketing

  • 12 Posts
  • 0 Reply Likes
That worked. 

Thanks so much for you help.

Erik