This API fetches a specific custom segment (File or Filter) by its ID.
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 ID of the custom segment.
Successful retrieval of custom segments. Returns a list of custom segments matching the query criteria. An empty list is returned if no segments match.