Dashboard Sign InKR

[DELETE] Delete User

You can delete a user using the user identifier. All of the user's data will be deleted.

Request

URL

DELETE https://api.asleep.ai/ai/v1/users/{user_id}

Header

FieldTypeRequiredDescription
x-api-keyStringOAPI Key

Path Parameter

FieldTypeRequiredDescription
user_idStringOuser id

Example

curl "https://api.asleep.ai/ai/v1/users/{user_id}" -XDELETE \
  -H "x-api-key: <YOUR_API_KEY>"

Response

204 No Content

  • User deletion successful

401 Unauthorized

  • The x-user-id header value is missing or in an incorrect format
{
  "detail": "invalid user id"
}

404 Not Found

  • User not found
{
  "detail": "user requested was not found"
}