Create Segment
Creates a segment. A static segment holds the contacts you add. A dynamic segment holds every contact that matches its rules, and keeps itself up to date. Needs a Full key. A key limited to one domain answers 403. Send an optional Idempotency-Key header to retry safely. See Idempotency.
{ "id": "seg_06d2mfk8r2kd7fq4mx9ab", "name": "Engaged customers", "description": null, "type": "dynamic", "conditions": { "match": "all", "rules": [ { "field": "property.plan", "operator": "is", "value": "pro" }, { "field": "email.opened", "operator": "within", "value": "30d" } ] }, "contact_count": null, "counted_at": null, "created_at": "2026-10-01T12:00:00.000Z", "updated_at": "2026-10-01T12:00:00.000Z" }
Created the segment.
Body Parameters
The segment name, 1 to 100 characters.
A description, up to 500 characters.
static or dynamic.
Needed for a dynamic segment, and not allowed for a static one.
Response
The segment id.
The segment name.
The description.
static or dynamic.
The rules of a dynamic segment. null for a static one.
How many contacts are in it. null until a dynamic segment is first counted.
When a dynamic segment was last counted.
When it was created.
When it last changed.