This API creates a new custom segment based on a set of filter conditions.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
The filter definition for the new segment.
Custom segment created successfully. Returns the newly created segment details including its unique ID, filter definition, and metadata.