cURL
curl --request POST \ --url https://api.embedreach.com/api/segments \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "conditions": [ { "field": "userId", "value": [ "<string>" ], "operator": "equals" } ], "description": "<string>", "type": "custom" } '
{ "success": true, "message": "<string>", "data": { "id": "<string>", "name": "<string>", "createdAt": "<string>", "type": "all_users", "description": "<string>" } }
Create a new tenant segment
If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.
A friendly name for the segment
The conditions to include in the segment
Show child attributes
A friendly description for the segment
The type of segment
custom
one_off
Status 200 response