✨ MoEngage NEXT Spring 2026 — The Future of Engagement is Agentic. Join us on April 28. Register now
curl --request GET \
--url https://api-{dc}.moengage.com/v3/custom-segments \
--header 'Authorization: Basic <encoded-value>' \
--header 'MOE-APPKEY: <moe-appkey>'{
"data": [
{
"name": "api_test_7",
"id": "6388a97a02adb9071ca84ce9",
"created_time": "2022-12-01T13:17:46.409000",
"type": "ELASTIC_SEARCH",
"source": "API"
}
],
"response_id": "WYanfieM",
"type": "custom_segment"
}This API lists all segments. You can optionally filter segments by an exact name match.
curl --request GET \
--url https://api-{dc}.moengage.com/v3/custom-segments \
--header 'Authorization: Basic <encoded-value>' \
--header 'MOE-APPKEY: <moe-appkey>'{
"data": [
{
"name": "api_test_7",
"id": "6388a97a02adb9071ca84ce9",
"created_time": "2022-12-01T13:17:46.409000",
"type": "ELASTIC_SEARCH",
"source": "API"
}
],
"response_id": "WYanfieM",
"type": "custom_segment"
}Documentation Index
Fetch the complete documentation index at: https://moengage-crashes-in-debug-feedback.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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 segment to retrieve.
Successful retrieval of segments. Returns a list of segments matching the query criteria. An empty list is returned if no segments match.
Was this page helpful?