API ReferenceSegments
Create a saved segment
x-sendlit-apikey<token>
In: header
Request Body
application/json
Body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.sendlit.dev/segments" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "filter": { "aggregator": "and", "filters": [ { "name": "email", "condition": "is", "value": "string" } ] } }'{
"segmentId": "string",
"name": "string",
"filter": {
"aggregator": "and",
"filters": [
{
"name": "email",
"condition": "is",
"value": "string",
"valueLabel": "string"
}
]
},
"createdAt": "string",
"updatedAt": "string"
}{
"error": "string"
}