Actions137
- Account Actions
- Automation Actions
- Broadcast Actions
- Contact Actions
- Contact Property Actions
- Domain Actions
- Email Actions
- Event Actions
- Inbox Actions
- Inbox Draft Actions
- Inbox Thread Actions
- Log Actions
- Receiving Email Actions
- Segment Actions
- Suppression Actions
- Template Actions
- Topic Actions
- Webhook Actions
Contact → List Segments
AI-generatedSummary
Retrieve the list of segments associated with a specified contact in Resend.
Inputs
- Authentication — Choose between API Key or OAuth2 for authenticating with Resend.
- Contact (required) — Specify the contact whose segment memberships to retrieve, either by selecting from a list or entering the contact ID.
- Return All — Decide whether to return all segment results or limit the number.
- Limit — Set the maximum number of segment results to return when 'Return All' is false.
Output shape
a list of segment objects that the specified contact belongs to
The results can be paginated using the 'Return All' and 'Limit' inputs. If authentication fails, an error is returned.
Examples
Example 1: List all segments of a contact by selecting from the contacts list and returning all segments.
Authentication set to OAuth2, Contact selected from list, Return All enabled.
Example 2: Fetch up to 10 segments for a contact by providing the contact ID.
Authentication set to API Key, Contact entered by ID, Return All disabled, Limit set to 10.