Delete users in batch

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-reference.lassomoderation.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Lasso Moderation API MCP server": {
    "url": "https://api-reference.lassomoderation.com/mcp"
  }
}

Close
POST /user/delete-batch

Delete all information from up to 1000 users in batch. This endpoint should be used in case a user would like to delete all their information from your and our systems (e.g. GDPR). Deletions are processed asynchronously; duplicate ids are deduplicated.

Default rate limit: 20 requests per minute.

application/json

Body

  • user_ids array[string] Required

    The ids of the user you would like to delete

    At least 1 but not more than 1000 elements. Maximum length of each is 100.

  • reason string

    In case you want to give it a reason. e.g. GDPR request

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • success boolean Required
    • queued integer Required

      The number of unique users queued for deletion

  • 400 application/json

    The request is invalid, see the error field for details

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 401 application/json

    The API token is missing or invalid

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 409 application/json

    Returned when one or more of the users are on legal hold and cannot be deleted. No users are deleted in that case.

    Hide response attributes Show response attributes object
    • success boolean Required
    • error string | object Required

      A message describing the error. For validation errors this is an object with an error message per field.

  • 429 application/json

    The rate limit has been exceeded, check the X-RateLimit headers for limits

    Hide headers attributes Show headers attributes
    • X-RateLimit-Limit

      The rate limit interval in milliseconds

    • X-RateLimit-Remaining

      The number of requests remaining in the current interval

    • X-RateLimit-Reset

      The number of milliseconds until requests are allowed again

    Hide response attribute Show response attribute object
    • error string Required
POST /user/delete-batch
curl \
 --request POST 'https://api.lassomoderation.com/api/v1/user/delete-batch' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '"{\n  \"user_ids\": [\n    \"clczbfbhh0000sa90h45xv3cg\",\n    \"clx0bg0g9000yu4zvb7e7o36t\"\n  ],\n  \"reason\": \"GDPR Deletion Request\"\n}"'
Request example
{
  "user_ids": [
    "clczbfbhh0000sa90h45xv3cg",
    "clx0bg0g9000yu4zvb7e7o36t"
  ],
  "reason": "GDPR Deletion Request"
}
Response examples (200)
{
  "success": true,
  "queued": 2
}
Response examples (400)
{
  "success": false,
  "error": {
    "content_id": "Value can be at most 100 characters"
  }
}
Response examples (401)
{
  "success": false,
  "error": "Invalid API key"
}
Response examples (409)
{
  "success": false,
  "error": "string"
}
Response examples (429)
{
  "error": "Too many requests, check headers for limits"
}