This API lists all custom segments. You can optionally filter segments by an exact name match.
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 URL-encoded name of the custom segment to retrieve.
Successful retrieval of custom segments. Returns a list of custom segments matching the query criteria. An empty list is returned if no segments match.