Skip to main content
POST
Create a segment from a natural-language prompt (AI)

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Body

application/json
name
string
required

Name for the new segment (1-200 chars).

description
string
required

Natural-language description of the audience to build (1-2000 chars).

Response

201 - application/json

The newly-created, already-materialised segment, wrapped in the standard { data, meta } envelope.

data
object
meta
object