Get a segment

GET
/v1/segments/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <key>. Looked up by SHA-256 hash (email_core::sha256_hex) against api_keys.hash; revoked keys and keys belonging to a suspended tenant are rejected. See the top-level Authentication section for permission levels.

Path Parameters

id*string

Response Body

Segment detail.

application/json
  1. response
id?string
name?string
filter?

email_core::segment::SegmentFilter, validated by parse_filter and compiled to a parameterized SQL predicate by compile_filter. At most 25 conditions; all conditions are ANDed (there is no OR).

created_at?integer
Formatint64
updated_at?integer
Formatint64
curl -X GET "https://example.com/v1/segments/string"
{  "id": "string",  "name": "string",  "filter": {    "match": "all",    "conditions": [      {        "field": "string",        "op": "eq",        "value": "string"      }    ]  },  "created_at": 0,  "updated_at": 0}