You cannot permanently delete a user directly via the API. You can only mark them as deleted, and then permanently remove them from the Deleted section in your Clice settings — or undo this deletion if needed.

This section is useful if you want to perfectly synchronize your active users between your application and Clice. Our API provides an endpoint that allows you to mark a user as deleted, for example, when they unsubscribe from your service.


Request

1. Details

Endpoint URL https://api.clice.app/ext/public/user/delete
Method POST
Header 0 "Content-type": "application/json"
Header 1 "apiKey": "YOUR_API_KEY"
Header 2 "appId": "YOUR_APP_ID"

2. Body

Field name Type Required Description
cuId string yes The ID of the user to delete.

3. Request Example

fetch("<https://api.clice.app/ext/public/user/delete>", {
    method: "POST",
    headers: {
        "Content-type": "application/json",
        "apiKey": "0fc11e67-f2ce-490d-9794-b4fe7232b67e",
        "appId": "1ce82385-59e6-4887-8b97-40d97ae5b020",
    },
    body: JSON.stringify({
        cuId: "6818b732dec2323cdbda2278",
    }),
});


Response

1. Details

Field name Type
statusCode number
success boolean
message string

2. Response Examples

  1. Success
{
    statusCode: 200,
    success: true,
    message: "User tagged deleted successfully",
}