Segments

Add a member

Add a contact to a segment, referenced by contact id or email. The operation is idempotent — adding a contact that's already a member is a no-op and still succeeds. See the current members with List segment members. Requires the segments:write capability.

post/segments/{id}/contacts

Request

  • Base URL: https://www.unitpost.com/api/v1
  • URL: https://www.unitpost.com/api/v1/segments/{id}/contacts
  • Auth: HTTP bearer

Request body

contactstring required
subscribedboolean

Response

The membership.

object'segment_member' required
contact_idstring required
subscribedboolean required
unsubscribed_atstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.