251
All tools

Create a segment

Creates a segment of the contacts that match an SQL-style query, optionally within one list, that updates as contacts change.

Updated Sep 27, 2026

create-segment.md

Create a segment

Creates a segment of the contacts that match an SQL-style query, optionally within one list, that updates as contacts change.

Note: Counts refresh every 1 to 24 hours, and a segment built on engagement data takes about 30 minutes to start filling.

Set up

Use the first option your agent supports.

API (official)

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
  • Never print API keys.

Ways in

RouteSourceCallRequiredDocs
APIOfficialPOST /v3/marketing/segments/2.0API key in $SENDGRID_API_KEYDocs

Workflows using Create a segment

No workflows yet
No published workflow uses Create a segment yet.