Resend icon

Resend

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

Segment → Create

AI-generated

Overview

This node operation creates a new contact segment in the Resend email platform. It allows users to define a segment by specifying a descriptive name and optionally applying filter conditions in JSON format to automatically include contacts that match certain criteria. This is useful for organizing contacts into meaningful groups such as 'Active Users' or 'Premium Customers' for targeted email broadcasts.

Use Case Examples

  1. Creating a segment named 'Registered Users' to group all users who have registered on a platform.
  2. Defining a segment with a JSON filter to include only contacts who have made a purchase in the last 30 days.

Properties

Name Meaning
Segment Name A descriptive name for the segment used to identify it when creating broadcasts.
Filter (JSON) Optional filter conditions as a JSON object to automatically include contacts matching certain criteria.

Output

JSON

  • segmentId - The unique identifier of the created segment.
  • segmentName - The name of the created segment.
  • segmentFilter - The filter conditions applied to the segment, if any.

Dependencies

  • Requires an API key credential for authentication with the Resend email platform.

Troubleshooting

  • Ensure the 'Segment Name' is provided and is not empty, as it is required.
  • Verify that the JSON filter syntax is correct to avoid errors when applying filter conditions.
  • Check API key credentials if authentication errors occur.

Links

Discussion