Delete Single Session Data

You can refer this document when you want to delete data from a specific session. Session data, uploaded audio data, and analysis data will all be deleted. If the requested session data is deleted from the Asleep server, it will be difficult to provide specific evidence for the deleted session during future billing analysis.

1. Request

1.1 URL


1.2 Header

x-api-keyStringOAPI Key
x-user-idStringOIssued user id

1.3 Path parameter

session_idStringOCreated session id


curl "{session_id}" -XDELETE \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "x-user-id: <USER_ID>"

2. Response

2.1 204 No Content

  • Session deleted successfully (No Response Body)

2.2 401 Unauthorized

  • x-user-id header value is missing or in the wrong format
  "detail": "invalid user id"

2.3 404 Not Found

  • User does not exist
  "detail": "user not exist"
  • Session does not exist
  "detail": "session does not exist"