Skip to main content

Create Segment

This endpoint facilitates the creation of a segment. This call accepts form-encoded request bodies and returns responses in JSON format.


Request Parameters

Parameter NameTypeRequiredDescription
segment_nameStringYesThe name of the segment to which notifications can be sent.

Response Object

Property NameTypeRequiredDescription
successBooleanYesIndicates if the request was successful. Possible values are true or false.
segment_idStringYesUnique identifier for the segment.
messageStringNoProvided when the request fails, explaining the reason for the failure.



curl -X POST -H "api_key: <your_pushengage_api_key>" -H "Content-Type: application/x-www-form-urlencoded" -d 'segment_name=coupon' ""


"success": true,
"segment_id": 98756