Actions84
- Broadcast Actions
- Contact Actions
- Contact Property Actions
- Domain Actions
- Email Actions
- Event Actions
- Log Actions
- Receiving Email Actions
- Segment Actions
- Template Actions
- Topic Actions
- Webhook Actions
- Workflow Actions
Segment → Create
AI-generatedOverview
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
- Creating a segment named 'Registered Users' to group all users who have registered on a platform.
- 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
- Resend API Documentation - Segments - Official documentation for managing segments in the Resend email platform, including filter syntax and segment creation.