✨ MoEngage NEXT Spring 2026 — The Future of Engagement is Agentic. Join us on April 28. Register now
curl --request PATCH \
--url https://api-{dc}.moengage.com/v2/custom-segments/archive \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "custom_segment_unique_name"
}
'{
"message": "Successfully archived the custom segment",
"success": true,
"cs_name": "custom_segment_unique_name"
}This API archives an existing segment (File or Filter). Archiving and unarchiving through APIs makes it easy to retrieve and reuse segments whenever required for purposes such as A/B testing, maintaining regulatory compliance, and improving system performance. You can access the archived segments and utilize them to analyze and market campaigns without the need to recreate them from scratch.
curl --request PATCH \
--url https://api-{dc}.moengage.com/v2/custom-segments/archive \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "custom_segment_unique_name"
}
'{
"message": "Successfully archived the custom segment",
"success": true,
"cs_name": "custom_segment_unique_name"
}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.
The name of the segment to be archived.
Was this page helpful?