curl --request POST \
--url https://api-{dc}.moengage.com/v1/customer/delete \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"identity_type": "customer_id",
"identity_value": "6416d1a318r98264512c0f89"
}
'Delete Users
This API deletes users in MoEngage. You cannot retrieve users once deleted. Users deleted (hard delete) using this API will be deleted after a default buffer of 24 hours. During this buffer period, the user will still be active in MoEngage and will be visible in Segments, Analytics, and Campaigns. You can update users in the buffer period. After the buffer elapses, the user is hard-deleted from MoEngage. If you create a user with the same unique identifiers as the deleted one in MoEngage (through APIs or imports), they will be created again in MoEngage.
curl --request POST \
--url https://api-{dc}.moengage.com/v1/customer/delete \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"identity_type": "customer_id",
"identity_value": "6416d1a318r98264512c0f89"
}
'Rate Limit
The rate limit is 1 user per payload per request. You can run 5000 requests per minute.承認
Send your Workspace ID and API key as a base64-encoded username:password string.
- Username: Your MoEngage Workspace ID (also known as the App ID), from Settings > Account > API keys.
- Password: An API key generated from Settings > Account > API keys. Click + Create new key, set Authentication type to Basic Auth, select the Data APIs group and its Delete User scope. The legacy Data key (auth type Basic Auth (Legacy)) also works.
Refer to API Key Dashboard for details on creating and managing API keys.
ヘッダー
The 'X-Forwarded-For' header is used to specify the IP address of the client that made the request. This header may be added by proxy servers or load balancers. The header value must contain the IP address of the original client that initiated the request. Multiple IP addresses may be specified in the header value, separated by commas.
"203.0.113.195"
クエリパラメータ
ボディ
This field specifies the identifier type. Identifier types can either be customer_id (ID field in the User Profile) or moengage_id (the MoEngageID of the user in the User Profile). Allowed values are "moengage_id", "customer_id".
customer_id, moengage_id "customer_id"
レスポンス
This response is returned when the request is processed successfully.