✨ MoEngage NEXT Spring 2026 — The Future of Engagement is Agentic. Join us on April 28. Register now
curl --request POST \
--url https://api-{dc}.moengage.com/v1/integrations/cohortsync \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"action": "add_members",
"partner": "6HNBXFm7ZS",
"parameters": {
"cohort_name": ".Partner_Name",
"cohort_id": "JKTAuqTRhC",
"cohort_description": "A cohort of users from a partner.",
"members": [
{
"uid": "mm1UR87z4T"
},
{
"uid": "AtCxliflui"
}
]
}
}
'{
"status": "success",
"message": "Your request has been accepted and will be processed soon."
}This API adds or removes a list of users from a custom segment (cohort) in MoEngage.
curl --request POST \
--url https://api-{dc}.moengage.com/v1/integrations/cohortsync \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"action": "add_members",
"partner": "6HNBXFm7ZS",
"parameters": {
"cohort_name": ".Partner_Name",
"cohort_id": "JKTAuqTRhC",
"cohort_description": "A cohort of users from a partner.",
"members": [
{
"uid": "mm1UR87z4T"
},
{
"uid": "AtCxliflui"
}
]
}
}
'{
"status": "success",
"message": "Your request has been accepted and will be processed soon."
}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.
uid) provided in the request. This API does not create new users.uid) provided in the request payload.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 cohort details and the members to add or remove.
This field indicates whether users need to be added to the cohort or removed from it.
add_members, remove_members This field indicates the name of the partner whose cohort is being synced to MoEngage.
"6HNBXFm7ZS"
Contains the information about the cohort to be synced.
Show child attributes
Success. This response is returned when the request is processed successfully.
Was this page helpful?