Resend icon

Resend

Send emails, manage contacts, create broadcasts, handle templates, domains, segments, topics, and webhooks using the Resend email platform

Contact → List Segments

AI-generated

Summary

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.

Links

Discussion