List Contact Segments
list-contact-segmentsRetrieve the list of segments a contact is assigned to in Resend by providing their contact ID or email. Supports pagination with after/before parameters.
Instructions
List all segments a contact belongs to in Resend (by contact ID or email). Don't bother telling the user the IDs or creation dates unless they ask for them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Segment ID after which to retrieve more (for forward pagination). Cannot be used with "before". | |
| No | Contact email address | ||
| limit | No | Number of segments to retrieve. Max: 100, Min: 1. If omitted, all segments are returned. | |
| before | No | Segment ID before which to retrieve more (for backward pagination). Cannot be used with "after". | |
| contactId | No | Contact ID |