POST /v1/admin/erasure
Service: ai · operationId: (none)
Hard-delete AI conversation and completion history for a user
Required scopes
(no scope declared — review service config)
Request body
{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"minLength": 1
},
"user_id": {
"type": "string",
"minLength": 1
}
},
"required": [
"request_id",
"user_id"
]
}Responses
200 AI records erased or already absent
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"deleted",
"partial",
"not_present"
]
},
"rows_affected": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
},
"partial_failures": {
"type": "array",
"items": {
"type": "object",
"properties": {
"service": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"service",
"message"
]
}
}
},
"required": [
"status",
"rows_affected",
"partial_failures"
]
}500 Erasure failed
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X POST https://ai.platform.loop.health/v1/admin/erasure \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/ai— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced