Session API

Base URL

  • The Session API creates a user who records a sleep session, and is responsible for creating and ending the session, and requesting sleep analysis by uploading the audio. At least 20 minutes of audio must be uploaded to initiate the analysis, and after that, it will be analyzed every 5 to 20 minutes, depending on the plan (depending on the contracted terms and conditions).
  • The current audio must be uploaded in order to perform accurate analysis, and depending on the plan, you can use the callback parameter during your API call to receive the result to the desired URL as the analysis is completed. The callback delivers the results of the analysis at a certain time when the analysis is completed, as well as when the session is fully terminated and the final analysis is over.