Refresh Segment and Get
A 3-step recipe with SendGrid. We can help you get access.
Recipe · 3 steps
Refresh Segment and Get
with SendGrid · Customer Segmentation Management
Create a segment, refresh it, and read back its current state.
- Create a query-driven segment scoped to the supplied parent list.
- Manually refresh the segment so its membership is recomputed.
- Read the segment back to inspect its current definition and count.
What you'll need to have ready
- apiKey: SendGrid API key sent as a bearer token.
- segmentName: The unique name for the new segment.
- parentListId: The existing list ID the segment is scoped to.
- queryDsl: The SGQL query that defines segment membership.
- userTimeZone: IANA timezone used when refreshing the segment.
For your developer
Arazzo workflow sendgrid:refresh-segment-and-get, 3 operations: CreateSegment → RefreshSegment → GetSegment. Specs on APIs.io.