{"info":{"_postman_id":"58495582-5172-4e19-8e5f-29222799580a","name":"Sleepacta Fontend API","description":"<html><head></head><body><p>This is a restricted and simplified version of the DORMI platform API, developed by Sleepacta.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21077355","collectionId":"58495582-5172-4e19-8e5f-29222799580a","publishedId":"2sB2cYd1Lv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-09-13T08:16:53.000Z"},"item":[{"name":"version","id":"e86b3d90-23e3-4d56-a8c7-715488d6529d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{FRONTEND_BASE_URL}}/api/version","description":"<p>Returns the current API version.</p>\n","urlObject":{"path":["api","version"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"603304e5-4ada-4176-bd39-36e9d749cf40","name":"version_response","originalRequest":{"method":"GET","header":[],"url":"{{FRONTEND_BASE_URL}}/api/version"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 29 May 2025 15:00:28 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"206"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"X-Powered-By","value":"PHP/8.1.31"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server-Timing","value":"rt;dur=0.689;desc=Process-Time"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=DE7RgBx469kXTxhu%2Bostvy1evBBKCGHAnC4rVvH0ytphqb%2B9yv86ZbiEIqsm9%2FqwW1EFosksx0DBKjbzvV5PLysil5bfPEkhP%2FrDPnb7eViMEKTxrSiaNCBljNxM9Q%3D%3D\"}]}"},{"key":"Set-Cookie","value":"PHPSESSID=rpp1qsr1v23b68jekfcq8bo34g; Path=/"},{"key":"CF-RAY","value":"9476dc896fd3c960-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"response\": {\n        \"api_data\": {\n            \"API version\": \"1.0\",\n            \"IP address\": \"10.0.1.36\",\n            \"server name\": \"partners-testing.sleepacta.com\",\n            \"server port\": \"80\"\n        },\n         \"signal_metadata\": {\n            \"firmware_version\": \"1.23.4\",\n            \"gui_version\": \"2.5.23\",\n            \"flasher_version\": \"1.5.2\"\n        },\n        \"signal_metadata_optional\": {\n            \"firmware_version\": \"1.23.4\",\n            \"gui_version\": \"2.5.23\",\n            \"flasher_version\": \"1.5.2\"\n        },\n        \"signal_gui_urls\": {\n            \"win_version\": \"https://www.sleepacta.com/signal_gui/signal_gui.exe\",\n            \"mac_version\": \"https://www.sleepacta.com/signal_gui/macos_signal_gui.dmg\"\n        },\n        \"signal_manuals\": {\n            \"ita_version\": \"https://partners.sleepacta.com/user_manual/Dormi_Signal_user_manual_ITA.pdf\",\n            \"eng_version\": \"https://partners.sleepacta.com/user_manual/Dormi_Signal_user_manual_ENG.pdf\",\n            \"datasheet\": \"https://partners.sleepacta.com/user_manual/signal_datasheet.pdf\"\n        },\n        \"documentation\": {\n            \"additional_analyses\": \"https://partners.sleepacta.com/user_manual/Dormi_Additional_Analyses_Documentation.pdf\",\n            \"human_activity_recognition\": \"https://partners.sleepacta.com/user_manual/Dormi_Human_Activity_Recognition.pdf\"\n        }\n    }\n}"}],"_postman_id":"e86b3d90-23e3-4d56-a8c7-715488d6529d"},{"name":"login","id":"d6d239c7-0c9a-41c5-99f4-592ba1b40d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{USERNAME}}\",\r\n    \"password\": \"{{PASSWORD}}\",\r\n    \"partner_id\": \"{{PARTNER_ID}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/login","description":"<p>Login the user and returns an authentication token that must be passed into the Authorization header of all other restricted access endpoints.</p>\n<p>The \"partner_id\" parameter is optional (it may be useful only in case of accounts having access to multiple partners).</p>\n<p>The returned field \"curr_account_role\" can assume the following values:</p>\n<p>- ROLE_ROOT: 0<br />- ROLE_PARTNER_FULL_ACCESS: 1<br />- ROLE_PARTNER_LIMITED_ACCESS: 2<br />- ROLE_ACCOUNTING: 3<br />- ROLE_MANAGER: 4<br />- ROLE_DATA_SCIENTIST: 5</p>\n<p>The returned fields:<br />- \"curr_partner_additional_analysis\"<br />- \"supported_additional_analysis\" in the \"curr_partner_device_configurations\"</p>\n<p>can assume a comma-separated value like \"activity-level-classification,altertness, ...\"</p>\n<p>The returned fields:<br />- \"curr_partner_apnea_mode\"<br />- \"supported_dormi_apnea_mode\" in the \"curr_partner_device_configurations\"</p>\n<p>can assume the following values:<br />- standard<br />- lite<br />- disabled</p>\n<p>The returned field \"supported_exam_type\" in the \"curr_partner_device_configurations\" can assume the following values:<br />- sleep<br />- sleep+apnea</p>\n","urlObject":{"path":["api","login"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"23307cc0-cafe-46b2-a59c-ad94aad6fbf7","name":"login_response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{USERNAME}}\",\r\n    \"password\": \"{{PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.sleepacta.com/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 May 2025 16:46:04 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"869"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"X-Powered-By","value":"PHP/8.1.31"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server-Timing","value":"rt;dur=0.631;desc=Process-Time"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Xp%2BZdLXQoGzZ2vR%2F2nXGJfAktZK%2BXP2KOFnhJ%2FwGzjbx27jCgSAZYVEAGBoV7Cd8cnUIALLMEAE9oGDt%2F0TH4%2Bx%2B%2FdbAcNZlrQ0yz%2BII8AX2UQUd1sTgTsM6Xrypal3ikZud9XiwkbrutEA1WItFdog%3D\"}]}"},{"key":"CF-RAY","value":"93fbde980a56c587-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"auth_data\": {\n        \"token\": \"f9f703f378f22b51ee8df484ba4304e9109dce72c90b6a4eb161a6d3f9f94a4f\",\n        \"expiration\": \"2025-05-14 16:56:04\",\n        \"curr_partner_id\": \"1\",\n        \"curr_account_name\": \"Demo User\",\n        \"curr_account_id\": \"14\",\n        \"curr_account_external_identifier\": \"my-external-id\",\n        \"curr_account_role\": \"1\",\n        \"curr_account_is_end_user\": \"0\",\n        \"curr_account_age\": null,\n        \"curr_account_weight\": null,\n        \"curr_account_height\": null,\n        \"curr_account_gender\": null,\n        \"curr_account_can_use_only_own_devices\": \"0\",\n        \"curr_account_has_advanced_gui_options\": \"0\",\n        \"curr_account_has_beta_firmware_access\": \"1\",\n        \"curr_partner_name\": \"Demo Partner\",\n        \"curr_partner_timezone\": \"Europe/Rome\",\n        \"curr_partner_dormi_apnea_mode\": \"standard\",\n        \"curr_partner_additional_analysis\": \"activity-level-classification,altertness, ...\",\n        \"curr_partner_device_configurations\": [\n            {\n                \"device_configuration_id\": \"1\",\n                \"name\": \"Sleep - 10g\",\n                \"configuration_url\": \"https://config.openmovement.dev/#nodetails&rate=12.5&range=8&gyro=0&stop=240&minbattery=80&title=Sleepacta%20-%20AX%20Configure&config=0\",\n                \"annotations\": \"12.5Hz, 10g\",\n                \"producer_id\": \"2\",\n                \"producer_name\": \"Axivity\",\n                \"supported_exam_type\": \"sleep+apnea\",\n                \"supported_additional_analysis\": null,\n                \"supported_dormi_apnea_mode\": \"lite\"\n            },\n            {\n                \"device_configuration_id\": \"7\",\n                \"name\": \"Signal Configuration\",\n                \"configuration_url\": \"https://signal.sleepacta.com/\",\n                \"annotations\": \"\",\n                \"producer_id\": \"4\",\n                \"producer_name\": \"Sleepacta\",\n                \"supported_exam_type\": \"sleep+apnea\",\n                \"supported_additional_analysis\": \"activity-level-classification,altertness, ... \",\n                \"supported_dormi_apnea_mode\": \"standard\"\n            }\n        ],\n        \"linked_partners\": [\n            {\n                \"partner_id\": \"1\",\n                \"partner_name\": \"Demo Partner 1\"\n            },\n            {\n                \"partner_id\": \"2\",\n                \"partner_name\": \"Demo Partner 2\"\n            }\n        ]\n    }\n}"}],"_postman_id":"d6d239c7-0c9a-41c5-99f4-592ba1b40d65"},{"name":"login_by_external_identifier","id":"d277b055-2c3e-413f-926b-9e9e3b62caa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"external_identifier\": \"{{EXTERNAL_IDENTIFIER}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/login_by_external_identifier","description":"<p>Login the user by its \"external_identifier\" and returns an authentication token that must be passed into the Authorization header of all other restricted access endpoints.<br />Returns the same response of the \"login\" endpoint.</p>\n","urlObject":{"path":["api","login_by_external_identifier"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"394159dc-4a5e-4b69-842e-c13e36917107","name":"login_response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{USERNAME}}\",\r\n    \"password\": \"{{PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.sleepacta.com/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 May 2025 16:46:04 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"869"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"X-Powered-By","value":"PHP/8.1.31"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server-Timing","value":"rt;dur=0.631;desc=Process-Time"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Xp%2BZdLXQoGzZ2vR%2F2nXGJfAktZK%2BXP2KOFnhJ%2FwGzjbx27jCgSAZYVEAGBoV7Cd8cnUIALLMEAE9oGDt%2F0TH4%2Bx%2B%2FdbAcNZlrQ0yz%2BII8AX2UQUd1sTgTsM6Xrypal3ikZud9XiwkbrutEA1WItFdog%3D\"}]}"},{"key":"CF-RAY","value":"93fbde980a56c587-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"auth_data\": {\n        \"token\": \"f9f703f378f22b51ee8df484ba4304e9109dce72c90b6a4eb161a6d3f9f94a4f\",\n        \"expiration\": \"2025-05-14 16:56:04\",\n        \"curr_partner_id\": \"1\",\n        \"curr_account_name\": \"Demo User\",\n        \"curr_account_id\": \"14\",\n        \"curr_account_external_identifier\": \"my-external-id\",\n        \"curr_account_role\": \"1\",\n        \"curr_account_is_end_user\": \"0\",\n        \"curr_account_age\": null,\n        \"curr_account_weight\": null,\n        \"curr_account_height\": null,\n        \"curr_account_gender\": null,\n        \"curr_account_can_use_only_own_devices\": \"0\",\n        \"curr_account_has_advanced_gui_options\": \"0\",\n        \"curr_account_has_beta_firmware_access\": \"1\",\n        \"curr_partner_name\": \"Demo Partner\",\n        \"curr_partner_timezone\": \"Europe/Rome\",\n        \"curr_partner_dormi_apnea_mode\": \"standard\",\n        \"curr_partner_additional_analysis\": \"activity-level-classification,altertness, ...\",\n        \"curr_partner_device_configurations\": [\n            {\n                \"device_configuration_id\": \"1\",\n                \"name\": \"Sleep - 10g\",\n                \"configuration_url\": \"https://config.openmovement.dev/#nodetails&rate=12.5&range=8&gyro=0&stop=240&minbattery=80&title=Sleepacta%20-%20AX%20Configure&config=0\",\n                \"annotations\": \"12.5Hz, 10g\",\n                \"producer_id\": \"2\",\n                \"producer_name\": \"Axivity\",\n                \"supported_exam_type\": \"sleep+apnea\",\n                \"supported_additional_analysis\": null,\n                \"supported_dormi_apnea_mode\": \"lite\"\n            },\n            {\n                \"device_configuration_id\": \"7\",\n                \"name\": \"Signal Configuration\",\n                \"configuration_url\": \"https://signal.sleepacta.com/\",\n                \"annotations\": \"\",\n                \"producer_id\": \"4\",\n                \"producer_name\": \"Sleepacta\",\n                \"supported_exam_type\": \"sleep+apnea\",\n                \"supported_additional_analysis\": \"activity-level-classification,altertness, ... \",\n                \"supported_dormi_apnea_mode\": \"standard\"\n            }\n        ]\n    }\n}"}],"_postman_id":"d277b055-2c3e-413f-926b-9e9e3b62caa2"},{"name":"login_by_cookie","id":"9e77104c-fb0b-4a75-b7dd-a37a9039eae8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/login_by_cookie","description":"<p>Login the user by an auth-cookie which must be sent by the browser (e.g. on the Signal web app) and returns an authentication token that must be passed into the Authorization header of all other restricted access endpoints.<br />Returns the same response of the \"login\" endpoint.</p>\n","urlObject":{"path":["api","login_by_cookie"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"4acaaef3-6c23-45ba-8e5a-169f6ae39b38","name":"login_response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{USERNAME}}\",\r\n    \"password\": \"{{PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.sleepacta.com/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 May 2025 16:46:04 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"869"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"X-Powered-By","value":"PHP/8.1.31"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server-Timing","value":"rt;dur=0.631;desc=Process-Time"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Xp%2BZdLXQoGzZ2vR%2F2nXGJfAktZK%2BXP2KOFnhJ%2FwGzjbx27jCgSAZYVEAGBoV7Cd8cnUIALLMEAE9oGDt%2F0TH4%2Bx%2B%2FdbAcNZlrQ0yz%2BII8AX2UQUd1sTgTsM6Xrypal3ikZud9XiwkbrutEA1WItFdog%3D\"}]}"},{"key":"CF-RAY","value":"93fbde980a56c587-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"auth_data\": {\n        \"token\": \"f9f703f378f22b51ee8df484ba4304e9109dce72c90b6a4eb161a6d3f9f94a4f\",\n        \"expiration\": \"2025-05-14 16:56:04\",\n        \"curr_partner_id\": \"1\",\n        \"curr_account_name\": \"Demo User\",\n        \"curr_account_id\": \"14\",\n        \"curr_account_external_identifier\": \"my-external-id\",\n        \"curr_account_role\": \"1\",\n        \"curr_account_is_end_user\": \"0\",\n        \"curr_account_age\": null,\n        \"curr_account_weight\": null,\n        \"curr_account_height\": null,\n        \"curr_account_gender\": null,\n        \"curr_account_can_use_only_own_devices\": \"0\",\n        \"curr_account_has_advanced_gui_options\": \"0\",\n        \"curr_account_has_beta_firmware_access\": \"1\",\n        \"curr_partner_name\": \"Demo Partner\",\n        \"curr_partner_timezone\": \"Europe/Rome\",\n        \"curr_partner_dormi_apnea_mode\": \"standard\",\n        \"curr_partner_additional_analysis\": \"activity-level-classification,altertness, ...\",\n        \"curr_partner_device_configurations\": [\n            {\n                \"device_configuration_id\": \"1\",\n                \"name\": \"Sleep - 10g\",\n                \"configuration_url\": \"https://config.openmovement.dev/#nodetails&rate=12.5&range=8&gyro=0&stop=240&minbattery=80&title=Sleepacta%20-%20AX%20Configure&config=0\",\n                \"annotations\": \"12.5Hz, 10g\",\n                \"producer_id\": \"2\",\n                \"producer_name\": \"Axivity\",\n                \"supported_exam_type\": \"sleep+apnea\",\n                \"supported_additional_analysis\": null,\n                \"supported_dormi_apnea_mode\": \"lite\"\n            },\n            {\n                \"device_configuration_id\": \"7\",\n                \"name\": \"Signal Configuration\",\n                \"configuration_url\": \"https://signal.sleepacta.com/\",\n                \"annotations\": \"\",\n                \"producer_id\": \"4\",\n                \"producer_name\": \"Sleepacta\",\n                \"supported_exam_type\": \"sleep+apnea\",\n                \"supported_additional_analysis\": \"activity-level-classification,altertness, ... \",\n                \"supported_dormi_apnea_mode\": \"standard\"\n            }\n        ]\n    }\n}"}],"_postman_id":"9e77104c-fb0b-4a75-b7dd-a37a9039eae8"},{"name":"logout","id":"62e7efb7-b3af-43f7-a8a3-842fa29d3cd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/logout","description":"<p>Invalidates the auth-token.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","logout"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"00e2f0b0-a5a4-400b-a2ce-da1e2f4bd2d0","name":"logout_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"{{AUTH_TOKEN}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.sleepacta.com/api/refresh_token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Apr 2025 08:29:29 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"194"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.091;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=5976&min_rtt=1942&rtt_var=8181&sent=11&recv=12&lost=0&retrans=0&sent_bytes=4105&recv_bytes=2933&delivery_rate=1450901&cwnd=4&unsent_bytes=0&cid=19254204a3cf32ad&ts=58601&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=dAPoLlntiTOfTqpWvP4Fw%2Ft%2F6UVM3%2FHOWDUZ1AI1gnkIgDqetdDGgh9qILDtGOPz9AEQ5Y5Pbmgli1sfkIi5gbAcLEdAUuY5cFjiWCW4mOnb5UUbrH0y95c0fSFWvHCCcbfKrT9GCPOaW%2B8fMK0xsT0%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f998931c9357ea-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"auth_data\": {\n        \"token\": \"your-new-auth-token\",\n        \"expiration\": \"2025-04-13 08:22:14\",\n        \"allowed_partners\": [\n            \"3\"\n        ],\n        \"curr_account_id\": null\n    }\n}"}],"_postman_id":"62e7efb7-b3af-43f7-a8a3-842fa29d3cd7"},{"name":"me","id":"bde34457-30b8-49b0-b474-aa0312a0f93c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/me","description":"<p>Returns the information about the currently logged user.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","me"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"b55169c7-b39c-477a-bfd0-f115441009eb","name":"me_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/me"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Date","value":"Wed, 22 Apr 2026 07:08:53 GMT"},{"key":"Server","value":"Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12"},{"key":"X-Powered-By","value":"PHP/8.2.12"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"521"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json;charset=utf-8"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"response\": {\n        \"account_info\": {\n            \"account_id\": \"1\",\n            \"name\": \"John Smith\",\n            \"username\": \"john\",\n            \"email\": \"john.smith@mail.com\",\n            \"enabled\": \"1\",\n            \"can_create_exams\": \"1\",\n            \"can_view_exams\": \"1\",\n            \"can_report_exams\": \"1\",\n            \"has_admin_features\": \"1\",\n            \"can_access_billing_data\": \"1\",\n            \"can_create_devices\": \"0\",\n            \"can_receive_reporting_requests\": \"0\",\n            \"can_use_only_own_devices\": \"0\",\n            \"has_advanced_gui_options\": \"0\",\n            \"has_beta_firmware_access\": \"1\",\n            \"external_identifier\": \"my-external-id\",\n            \"skip_otp\": \"1\",\n            \"is_end_user\": \"0\",\n            \"age\": null,\n            \"weight\": null,\n            \"height\": null,\n            \"gender\": null\n        }\n        \"partner_info\": {\n            \"id\": 6,\n            \"partner_name\": \"Demo Customer\",\n            \"partner_timezone\": \"Europe/Rome\",\n            \"partner_dormi_apnea_mode\": \"standard\",\n            \"partner_additional_analysis\": \"altertness,circadian-modeling,cosinor-fitting,functional-linear-model,inertial-breathing-rate,inertial-heart-rate,inertial-sleep-apnea,non-parametric-variables,sleepiness,temperature-apnea\",\n            \"partner_device_configurations\": [\n               {\n                    \"device_configuration_id\": \"1\",\n                    \"name\": \"Sleep - 10g\",\n                    \"configuration_url\": \"https://config.openmovement.dev/#nodetails&rate=12.5&range=8&gyro=0&stop=240&minbattery=80&title=Sleepacta%20-%20AX%20Configure&config=0\",\n                    \"annotations\": \"12.5Hz, 10g\",\n                    \"producer_id\": \"2\",\n                    \"producer_name\": \"Axivity\",\n                    \"supported_exam_type\": \"sleep+apnea\",\n                    \"supported_additional_analysis\": null,\n                    \"supported_dormi_apnea_mode\": \"lite\"\n                },\n                {\n                    \"device_configuration_id\": \"7\",\n                    \"name\": \"Signal Configuration\",\n                    \"configuration_url\": \"https://signal.sleepacta.com/\",\n                    \"annotations\": \"\",\n                    \"producer_id\": \"4\",\n                    \"producer_name\": \"Sleepacta\",\n                    \"supported_exam_type\": \"sleep+apnea\",\n                    \"supported_additional_analysis\": \"activity-level-classification,altertness, ... \",\n                    \"supported_dormi_apnea_mode\": \"standard\"\n                }\n            ]\n        }\n    }\n    }\n}"}],"_postman_id":"bde34457-30b8-49b0-b474-aa0312a0f93c"},{"name":"refresh_token","id":"6c94a8f0-f51f-4b7a-84ba-f9825431c0e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"{{AUTH_TOKEN}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/refresh_token","description":"<p>To be used to refresh the auth-token, by passing the current one as parameter.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","refresh_token"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"42c35f34-9b68-431a-865e-6055986738fc","name":"refresh_token_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"{{AUTH_TOKEN}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.sleepacta.com/api/refresh_token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Apr 2025 08:29:29 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"194"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.091;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=5976&min_rtt=1942&rtt_var=8181&sent=11&recv=12&lost=0&retrans=0&sent_bytes=4105&recv_bytes=2933&delivery_rate=1450901&cwnd=4&unsent_bytes=0&cid=19254204a3cf32ad&ts=58601&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=dAPoLlntiTOfTqpWvP4Fw%2Ft%2F6UVM3%2FHOWDUZ1AI1gnkIgDqetdDGgh9qILDtGOPz9AEQ5Y5Pbmgli1sfkIi5gbAcLEdAUuY5cFjiWCW4mOnb5UUbrH0y95c0fSFWvHCCcbfKrT9GCPOaW%2B8fMK0xsT0%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f998931c9357ea-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"auth_data\": {\n        \"token\": \"your-new-auth-token\",\n        \"expiration\": \"2025-04-13 08:22:14\",\n        \"allowed_partners\": [\n            \"3\"\n        ],\n        \"curr_account_id\": null\n    }\n}"}],"_postman_id":"6c94a8f0-f51f-4b7a-84ba-f9825431c0e3"},{"name":"get_available_devices","id":"0d6eaed9-ea77-4d98-bc35-e6a7b551201d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_available_devices","description":"<p>Returns the devices usable for a delivery.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_available_devices"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"543ff753-8b41-4898-bf1b-27ad85162a91","name":"get_available_devices_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://partners-testing.sleepacta.com/api/get_available_devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 12 Apr 2025 11:26:47 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"473"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.097;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=2347&min_rtt=2141&rtt_var=950&sent=3&recv=5&lost=0&retrans=0&sent_bytes=219&recv_bytes=1153&delivery_rate=676319&cwnd=212&unsent_bytes=0&cid=5f38d431a0e8429a&ts=424&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=2jlvZ5sKqI%2FZY9O9hZSReuVYxxpCfodAIYLUSgoAZhnBkbZEHzCPlcEn%2BGqsviSeTG%2BrIJvLynHgDG2RDTVcpHDrkNPXf6CQOYIjqvYWxbc5iUtvoVGUWZTZ78UkJdIc%2BxWFTZ%2Fd43qkWpjZm82zeRM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f25ee8192e205a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"devices\": [\n        {\n            \"id\": \"81\",\n            \"partner_id\": \"1\",\n            \"patient_id\": \"0\",\n            \"producer_id\": \"2\",\n            \"vendor_code\": \"1234567\",\n            \"model\": \"AX3\",\n            \"location\": \"Montacchiello\",\n            \"owner\": \"Sleepacta\",\n            \"account_name_filter\": \"\",\n            \"client_id\": \"\",\n            \"garmin_id\": \"\",\n            \"garmin_email\": \"\",\n            \"client_secret\": \"\",\n            \"status\": \"authorized\",\n            \"creation_date\": \"2024-07-24 16:42:36\",\n            \"last_sync_date\": \"2024-10-15 12:36:37\",\n            \"auth_url\": \"\",\n            \"visible\": \"1\",\n            \"annotations\": \"\",\n            \"producer_invoice_id\": \"24\",\n            \"producer_dispatch_date\": \"2024-11-26 00:00:00\",\n            \"producer_name\": \"Axivity\"\n        },\n        {\n            \"id\": \"80\",\n            \"partner_id\": \"1\",\n            \"patient_id\": \"0\",\n            \"producer_id\": \"2\",\n            \"vendor_code\": \"606446\",\n            \"model\": \"AX6\",\n            \"location\": \"Montacchiello\",\n            \"owner\": \"Sleepacta\",\n            \"account_name_filter\": \"my-filter\",\n            \"client_id\": \"\",\n            \"garmin_id\": \"\",\n            \"garmin_email\": \"\",\n            \"client_secret\": \"\",\n            \"status\": \"authorized\",\n            \"creation_date\": \"2024-06-18 09:13:29\",\n            \"last_sync_date\": \"2024-08-05 10:49:03\",\n            \"auth_url\": \"\",\n            \"visible\": \"1\",\n            \"annotations\": \"\",\n            \"producer_invoice_id\": \"24\",\n            \"producer_dispatch_date\": \"2024-11-26 00:00:00\",\n            \"producer_name\": \"Axivity\"\n        },\n        {\n            \"id\": \"88\",\n            \"partner_id\": \"1\",\n            \"patient_id\": \"0\",\n            \"producer_id\": \"2\",\n            \"vendor_code\": \"606114\",\n            \"model\": \"AX6\",\n            \"location\": \"Roma\",\n            \"owner\": \"Sleepacta\",\n            \"account_name_filter\": \"\",\n            \"client_id\": \"\",\n            \"garmin_id\": \"\",\n            \"garmin_email\": \"\",\n            \"client_secret\": \"\",\n            \"status\": \"authorized\",\n            \"creation_date\": \"2024-12-10 18:08:53\",\n            \"last_sync_date\": \"2025-03-18 11:19:04\",\n            \"auth_url\": \"\",\n            \"visible\": \"1\",\n            \"annotations\": \"\",\n            \"producer_invoice_id\": null,\n            \"producer_dispatch_date\": null,\n            \"producer_name\": \"Axivity\"\n        }\n    ]\n}"}],"_postman_id":"0d6eaed9-ea77-4d98-bc35-e6a7b551201d"},{"name":"insert_delivery","id":"d174d6ba-e91c-4b4e-9d58-01fa10d8b740","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"{{DEVICE_ID}}\",\r\n    \"patient_identifier\": \"test\",\r\n    \"patient_age\": \"50\",\r\n    \"patient_gender\": \"M\",\r\n    \"patient_height\": \"185\",\r\n    \"patient_weight\": \"80\",\r\n    \"exam_type\": \"sleep\",\r\n    \"device_configuration_id\": 1,\r\n    \"delivery_date\": \"2025-11-25 13:00:00\",\r\n    \"end_recording_date\": \"2025-11-30 13:00:00\",\r\n\r\n    \"plot_steps\": \"1\",\r\n    \"plot_temperature\": \"1\",\r\n    \"plot_heartrate\": \"1\",\r\n    \"plot_breathrate\": \"0\",\r\n    \"plot_light\": \"1\",\r\n    \"plot_double_taps\": \"0\",\r\n    \"plot_hr_single_beats\": \"0\",\r\n    \"plot_hrv_rmssd_bcg\": \"0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/insert_delivery","description":"<p>Inserts a delivery.</p>\n<p>The \"exam_type\" parameter is mandatory (possible values: \"sleep\", \"sleep+apnea\").</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","insert_delivery"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"66cef45c-1423-444f-862e-d60a81e6cac2","name":"insert_delivery_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"89\",\r\n    \"patient_identifier\": \"the-anonymous-patient-identifier\",\r\n    \"patient_age\": \"50\",\r\n    \"patient_gender\": \"M\",\r\n    \"patient_height\": \"185\",\r\n    \"patient_weight\": \"80\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners-testing.sleepacta.com/api/insert_delivery"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 12 Apr 2025 08:01:17 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.096;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=1974&min_rtt=1782&rtt_var=805&sent=3&recv=5&lost=0&retrans=0&sent_bytes=219&recv_bytes=1376&delivery_rate=812570&cwnd=250&unsent_bytes=0&cid=b62ab2a9b8bb73b2&ts=426&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=fyqLMVewEl%2FFOMb4Ez0%2Bg%2B%2BnBcm0LK0vTIeLuR9DReXX2O2Lo4GhMdWWIMaG6H0AzbfeAicPy1Omb7B6%2F%2B%2Ftqdvr%2BxEweQQmqmD3HjZH5DTGSPRw1st4p8yAyNwiduC4rPXKhir1YbF8WZCTjGfIjWk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f131e2d93d87a1-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"new_delivery_id\": \"78\"\n}"}],"_postman_id":"d174d6ba-e91c-4b4e-9d58-01fa10d8b740"},{"name":"get_open_deliveries","id":"2cf75a9e-0de4-4f68-abf8-2f17ebfda0da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_open_deliveries","description":"<p>Retrieves the deliveries still ongoing.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_open_deliveries"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"264909df-fe75-45ae-9637-4ca0ddde1bb3","name":"get_open_deliveries_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_open_deliveries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 May 2025 12:32:09 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"1091"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"X-Powered-By","value":"PHP/8.1.31"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server-Timing","value":"rt;dur=0.110;desc=Process-Time"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=z3qggy57To8%2FRFoWYQb9B%2B7yxSFkS%2B5Dck2v2yyyTnOdh7DEOXZCAPq1vzDibZlNoDwt983qHG5%2Bpgh%2FvBWbTyNgjF49AnnlTdBsZu0W02UssLtj%2FbT2Lxhx8R5G6%2B1bSntVQ55YKEphlGTtvkInmXc%3D\"}]}"},{"key":"CF-RAY","value":"93fa6aa73d2956b6-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"deliveries\": [\n        {\n            \"id\": \"51\",\n            \"creation_date\": \"2024-09-24 16:07:25\",\n            \"delivery_date\": \"2024-09-24 16:07:00\",\n            \"last_mod_date\": \"2024-09-24 16:07:25\",\n            \"device_configuration_id\": null,\n            \"shipment_id\": \"82\",\n            \"device_id\": \"83\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"A1\",\n            \"patient_age\": \"33\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"M\",\n            \"patient_external_identifier\": \"my-external-id-1\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"device-code-1\",\n            \"status\": \"authorized\",\n            \"device_model\": \"\",\n            \"device_owner\": \"\",\n            \"account_name_filter\": \"my-filter\",\n            \"device_location\": \"\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2025-04-14 20:06:33\",\n            \"producer_id\": \"2\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Axivity\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"53\",\n            \"creation_date\": \"2024-10-22 15:04:54\",\n            \"delivery_date\": \"2024-10-22 15:04:00\",\n            \"last_mod_date\": \"2024-10-22 15:04:54\",\n            \"device_configuration_id\": null,\n            \"shipment_id\": \"0\",\n            \"device_id\": \"76\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"A2\",\n            \"patient_age\": \"33\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"M\",\n            \"patient_external_identifier\": \"my-external-id-2\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"AA077\",\n            \"status\": \"authorized\",\n            \"device_model\": \"\",\n            \"device_owner\": \"Sleepacta\",\n            \"account_name_filter\": null,\n            \"device_location\": \"Andrea Vecchi\",\n            \"device_visible\": \"0\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2023-09-19 17:40:55\",\n            \"producer_id\": \"1\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"FitBit\",\n            \"manual_upload\": \"0\",\n            \"web_configuration\": \"0\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"71\",\n            \"creation_date\": \"2025-03-18 00:14:07\",\n            \"delivery_date\": \"2025-03-18 00:13:00\",\n            \"last_mod_date\": \"2025-03-18 00:16:48\",\n            \"device_configuration_id\": \"6\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"85\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"test\",\n            \"patient_age\": \"33\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"prova\",\n            \"status\": \"authorized\",\n            \"device_model\": \"\",\n            \"device_owner\": \"\",\n            \"account_name_filter\": \"\",\n            \"device_location\": \"\",\n            \"device_visible\": \"0\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2025-03-24 12:02:25\",\n            \"producer_id\": \"2\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Axivity\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"87\",\n            \"creation_date\": \"2025-04-14 15:39:56\",\n            \"delivery_date\": \"2025-04-14 15:39:00\",\n            \"last_mod_date\": \"2025-04-14 15:39:56\",\n            \"device_configuration_id\": \"1\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"86\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"test2\",\n            \"patient_age\": \"33\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"prova come Michele Bonassisa\",\n            \"vendor_code\": \"18-100176\",\n            \"status\": \"authorized\",\n            \"device_model\": \"AX3\",\n            \"device_owner\": \"Riccardo Corredi\",\n            \"account_name_filter\": \"\",\n            \"device_location\": \"Riccardo Corredi\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2025-04-24 19:58:33\",\n            \"producer_id\": \"2\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Axivity\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"88\",\n            \"creation_date\": \"2025-04-14 16:28:11\",\n            \"delivery_date\": \"2025-04-14 16:27:00\",\n            \"last_mod_date\": \"2025-04-15 15:12:27\",\n            \"device_configuration_id\": \"1\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"80\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"test\",\n            \"patient_age\": \"22\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"AX6-606446\",\n            \"status\": \"authorized\",\n            \"device_model\": \"\",\n            \"device_owner\": \"Sleepacta\",\n            \"account_name_filter\": \"andrea\",\n            \"device_location\": \"Montacchiello\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2024-08-05 10:49:03\",\n            \"producer_id\": \"2\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Axivity\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"104\",\n            \"creation_date\": \"2025-05-08 15:09:16\",\n            \"delivery_date\": \"2025-05-07 15:00:00\",\n            \"last_mod_date\": \"2025-05-08 15:10:53\",\n            \"device_configuration_id\": \"0\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"99\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"TB\",\n            \"patient_age\": \"33\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"M\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"25-00001\",\n            \"status\": \"authorized\",\n            \"device_model\": \"Signal\",\n            \"device_owner\": \"Sleepacta\",\n            \"account_name_filter\": \"\",\n            \"device_location\": \"Montacchiello\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2025-05-13 13:17:56\",\n            \"producer_id\": \"4\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Sleepacta\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"106\",\n            \"creation_date\": \"2025-05-08 15:10:36\",\n            \"delivery_date\": \"2025-05-07 15:00:00\",\n            \"last_mod_date\": \"2025-05-08 15:10:36\",\n            \"device_configuration_id\": \"0\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"101\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"EMM\",\n            \"patient_age\": \"36\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"M\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"25-00003\",\n            \"status\": \"authorized\",\n            \"device_model\": \"Signal\",\n            \"device_owner\": \"Sleepacta\",\n            \"account_name_filter\": \"\",\n            \"device_location\": \"Montacchiello\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2025-05-13 15:11:19\",\n            \"producer_id\": \"4\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Sleepacta\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"105\",\n            \"creation_date\": \"2025-05-08 15:10:01\",\n            \"delivery_date\": \"2025-05-07 20:00:00\",\n            \"last_mod_date\": \"2025-05-08 15:10:01\",\n            \"device_configuration_id\": \"0\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"102\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"PP\",\n            \"patient_age\": \"49\",\n            \"patient_weight\": \"0\",\n            \"patient_height\": \"0\",\n            \"patient_gender\": \"F\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"3\",\n            \"last_mod_account_id\": \"3\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": null,\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"25-00004\",\n            \"status\": \"authorized\",\n            \"device_model\": \"Signal\",\n            \"device_owner\": \"Sleepacta\",\n            \"account_name_filter\": \"\",\n            \"device_location\": \"Montacchiello\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"0000-00-00 00:00:00\",\n            \"producer_id\": \"4\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Demo Root\",\n            \"last_mod_account_name\": \"Demo Root\",\n            \"producer\": \"Sleepacta\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        },\n        {\n            \"id\": \"113\",\n            \"creation_date\": \"2025-05-14 12:31:10\",\n            \"delivery_date\": \"2025-05-14 12:31:10\",\n            \"last_mod_date\": \"2025-05-14 12:31:10\",\n            \"device_configuration_id\": \"0\",\n            \"shipment_id\": \"0\",\n            \"device_id\": \"89\",\n            \"patient_id\": null,\n            \"patient_identifier\": \"test\",\n            \"patient_age\": \"50\",\n            \"patient_weight\": \"80\",\n            \"patient_height\": \"185\",\n            \"patient_gender\": \"M\",\n            \"partner_id\": \"1\",\n            \"account_id\": \"14\",\n            \"last_mod_account_id\": \"14\",\n            \"completed\": \"0\",\n            \"virtual\": \"0\",\n            \"annotations\": \"\",\n            \"exam_type\": \"sleep\",\n            \"device_annotations\": \"\",\n            \"vendor_code\": \"test device\",\n            \"status\": \"authorized\",\n            \"device_model\": \"AX3\",\n            \"device_owner\": \"Sleepacta\",\n            \"account_name_filter\": \"\",\n            \"device_location\": \"Montacchiello\",\n            \"device_visible\": \"1\",\n            \"device_status\": \"authorized\",\n            \"device_last_sync_date\": \"2025-04-14 23:35:17\",\n            \"producer_id\": \"2\",\n            \"partner_name\": \"Demo Partner\",\n            \"account_name\": \"Utente Demo\",\n            \"last_mod_account_name\": \"Utente Demo\",\n            \"producer\": \"Axivity\",\n            \"manual_upload\": \"1\",\n            \"web_configuration\": \"1\",\n            \"last_sync_api\": \"1\"\n        }\n    ]\n}"}],"_postman_id":"2cf75a9e-0de4-4f68-abf8-2f17ebfda0da"},{"name":"upload_raw_data","id":"ba57b298-4771-4283-99e7-bcaef1970ac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"raw_data","description":"<p>a ZIP file containing the device raw-data</p>\n","type":"file","uuid":"38fd2e56-d272-4259-a093-5d60c044f7b8","src":"Q3lWJAU1n/test.zip"},{"key":"device_id","value":"{{DEVICE_ID}}","description":"<p>the device identifier</p>\n","type":"text","uuid":"5e06e9c7-b540-490f-8277-71afc3d1c7df"},{"key":"delivery_id","value":"{{DELIVERY_ID}}","description":"<p>optionally can be used instead of device_id</p>\n","type":"text","uuid":"d7ef7526-240d-41be-b21f-42d9a36f4705"}]},"url":"{{FRONTEND_BASE_URL}}/api/upload_raw_data","description":"<p>Upload the ZIP raw-data for a device, given its ID.</p>\n<p>It's also possible to use the delivery ID instead of the device ID (which will be retrieved accordingly).</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","upload_raw_data"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"77f66b8c-805b-4a96-9b6a-16feaa563e84","name":"upload_raw_data_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"raw_data","description":"the ZIP file to be uploaded","type":"file","uuid":"38fd2e56-d272-4259-a093-5d60c044f7b8","src":"h5b0UUso0/test.zip"},{"key":"device_id","value":"84","description":"(optional) the device identifier","type":"text","uuid":"5e06e9c7-b540-490f-8277-71afc3d1c7df"},{"key":"delivery_id","value":"70","description":"(optional) the delivery identifier","type":"text","uuid":"d7ef7526-240d-41be-b21f-42d9a36f4705","disabled":true}]},"url":"https://partners-testing.sleepacta.com/api/upload_raw_data"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 12 Apr 2025 23:42:55 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"129"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=2.353;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=2302&min_rtt=2169&rtt_var=909&sent=38&recv=139&lost=0&retrans=0&sent_bytes=219&recv_bytes=181869&delivery_rate=667588&cwnd=230&unsent_bytes=0&cid=ece74a6f2ef8d3a2&ts=2901&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=s9FWMEqr0uX6wPcz3D4eQRiCAmutIK8WoX2Q5nYiIZ84w0l%2Bm58VZb3jonUiD1VMf9xE1vYQ0ExN2GMZLCtqyjneuO2yGxAXAqpySPR4xJ3nMLY6pARUChy1cOeDY5vevpp%2BPNHxwevpxjoWkwGv2Kc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f69529cd6af278-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"update_info\": {\n        \"updated_device_id\": \"84\",\n        \"update_date\": \"2025-04-12T23:42:55.235Z\"\n    }\n}"}],"_postman_id":"ba57b298-4771-4283-99e7-bcaef1970ac2"},{"name":"create_exam_from_delivery","id":"45312ffd-4725-4aa1-8028-62a45b483a1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"delivery_id\": \"{{DELIVERY_ID}}\",\r\n    \"override_start_date\": \"{{OVERRIDE_START_DATE}}\",\r\n    \"override_end_date\": \"{{OVERRIDE_END_DATE}}\",\r\n    \"lang\": \"it\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/create_exam_from_delivery","description":"<p>Creates an exam from an ongoing delivery (whose identifier must be passed as a parameter).</p>\n<p>The \"lang\" parameter is optional (possible values: \"it\", \"en\", \"fr\", default \"it\").</p>\n<p>The \"override_start_date\" parameter (a valid date-time string having format <code>yyyy-mm-dd hh:mm:ss</code>) is optional. When passed, it overrides the exam start date, which is normally the delivery date-time.</p>\n<p>The \"override_end_date\" parameter (a valid date-time string having format <code>yyyy-mm-dd hh:mm:ss</code>) is optional. When passed, it overrides the exam end date, which is normally the current date-time.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","create_exam_from_delivery"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"82099114-b4e7-4edc-87bc-12a250896194","name":"create_exam_from_delivery","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"delivery_id\": \"40\",\r\n    \"exam_type\": \"sleep\",\r\n    \"lang\": \"it\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners-testing.sleepacta.com/api/create_exam_from_delivery"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"new_exam_id\": \"300\"\n}"}],"_postman_id":"45312ffd-4725-4aa1-8028-62a45b483a1c"},{"name":"get_exam","id":"da9aacba-edf1-4e5d-8db3-784641e4e58f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_exam?id={{EXAM_ID}}&full_version={{FULL_VERSION}}","description":"<p>Returns the exam details given its ID.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_exam"],"host":["{{FRONTEND_BASE_URL}}"],"query":[{"description":{"content":"<p>the ID of the exam to be returned</p>\n","type":"text/plain"},"key":"id","value":"{{EXAM_ID}}"},{"description":{"content":"<p>set to 1 to return all the exam data (optional, default 0)</p>\n","type":"text/plain"},"key":"full_version","value":"{{FULL_VERSION}}"}],"variable":[]}},"response":[{"id":"adc103ea-a123-4ed1-9295-529b8f3124b5","name":"get_exam_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://partners.sleepacta.com/api/get_exam?id=342","protocol":"https","host":["partners","sleepacta","com"],"path":["api","get_exam"],"query":[{"key":"id","value":"342","description":"the exam identifier"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Apr 2025 08:45:34 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"2705"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=2.360;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=2076&min_rtt=1944&rtt_var=823&sent=3&recv=5&lost=0&retrans=0&sent_bytes=219&recv_bytes=1147&delivery_rate=744855&cwnd=230&unsent_bytes=0&cid=7d72eb248d4e7ee9&ts=2694&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=jY4zqf84fGsq8Wt6WDuqcab3nJ3GNsdFf7eg0i8o7xxoMjAGEEtqvnfUckKXaZlNRn%2Bgr13UH0ZKQZ%2Fd%2F%2BtVUTX8RqYCdQTP1o%2FQ5eMyvK9YDkwEkN%2F8wPKXfNZdiT6ofiP9WUm5it6Fto6NV5kSqr0%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f9b01309e972ec-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"exam\": {\n        \"exam_id\": \"342\",\n        \"partner_name\": \"Demo Partner\",\n        \"exam_type\": \"sleep+apnea\",\n        \"creation_date\": \"2025-04-12 11:48:56\",\n        \"creator\": {\n                \"name\": \"John Smith\",\n                \"id\": 34\n            },\n        \"start_date\": \"2025-04-12 11:48:41\",\n        \"end_date\": \"2025-04-12 11:48:56\",\n        \"status\": \"completed\",\n        \"doctor_name\": null,\n        \"reporting_date\": null,\n        \"annotations\": \"\",\n        \"timezone\": \"Europe/Rome\",\n        \"language\": \"it\",\n        \"last_run_id\": \"1302\",\n        \"algorithm\": \"Dormi (FP.v01)\",\n        \"device\": {\n            \"producer\": \"Axivity\",\n            \"vendor_code\": \"0000111\"\n        },\n        \"patient\": {\n            \"age\": 50,\n            \"nickname\": \"patient-anonymous-id\",\n            \"gender\": \"M\",\n            \"weight\": 80,\n            \"height\": 185,\n            \"external_identifier\": \"my-external-id\"\n        },\n        \"delivery\": {\n            \"delivery_id\": \"118\",\n            \"account_name\": \"John Smith\",\n            \"creation_date\": \"2025-04-12 11:48:41\",\n            \"delivery_date\": \"2025-04-12 11:48:41\",\n            \"annotations\": \"\"\n        },\n        \"avg_kpis\": {\n            \"tst\": \"313.888889\",\n            \"se\": \"83.993334\",\n            \"waso\": \"78.111111\",\n            \"sri\": \"80.779999\",\n            \"naw\": \"38.4444\",\n            \"daw\": \"5.378889\",\n            \"mi\": \"5.013333\",\n            \"ai\": \"25.277778\",\n            \"sleep_onset\": \"23:08\",\n            \"sleep_offset\": \"07:06\"\n        },\n        \"daily_logs\": [\n            {\n                \"day_idx\": \"0\",\n                \"start_date\": \"2024-09-02 00:00:00\",\n                \"end_date\": \"2024-09-02 00:00:00\",\n                \"sleep_onset\": \"01:23:00\",\n                \"sleep_offset\": \"07:20:00\",\n                \"tst\": \"299.00\",\n                \"se\": \"83.75\",\n                \"sri\": \"80.78\",\n                \"naw\": \"57\",\n                \"daw\": \"3.59\",\n                \"mi\": \"5.18\",\n                \"ai\": \"18.50\"\n            },\n            {\n                \"day_idx\": \"1\",\n                \"start_date\": \"2024-09-03 00:00:00\",\n                \"end_date\": \"2024-09-03 00:00:00\",\n                \"sleep_onset\": \"00:15:00\",\n                \"sleep_offset\": \"06:52:00\",\n                \"tst\": \"360.00\",\n                \"se\": \"90.68\",\n                \"sri\": \"80.78\",\n                \"naw\": \"38\",\n                \"daw\": \"2.68\",\n                \"mi\": \"3.90\",\n                \"ai\": \"15.50\"\n            },\n            {\n                \"day_idx\": \"2\",\n                \"start_date\": \"2024-09-03 00:00:00\",\n                \"end_date\": \"2024-09-04 00:00:00\",\n                \"sleep_onset\": \"19:53:00\",\n                \"sleep_offset\": \"07:15:00\",\n                \"tst\": \"350.00\",\n                \"se\": \"51.40\",\n                \"sri\": \"80.78\",\n                \"naw\": \"32\",\n                \"daw\": \"20.69\",\n                \"mi\": \"16.73\",\n                \"ai\": \"114.00\"\n            },\n            {\n                \"day_idx\": \"3\",\n                \"start_date\": \"2024-09-05 00:00:00\",\n                \"end_date\": \"2024-09-05 00:00:00\",\n                \"sleep_onset\": \"00:50:00\",\n                \"sleep_offset\": \"07:24:00\",\n                \"tst\": \"374.00\",\n                \"se\": \"94.92\",\n                \"sri\": \"80.78\",\n                \"naw\": \"50\",\n                \"daw\": \"2.05\",\n                \"mi\": \"2.92\",\n                \"ai\": \"11.50\"\n            },\n            {\n                \"day_idx\": \"4\",\n                \"start_date\": \"2024-09-06 00:00:00\",\n                \"end_date\": \"2024-09-06 00:00:00\",\n                \"sleep_onset\": \"00:21:00\",\n                \"sleep_offset\": \"06:39:00\",\n                \"tst\": \"312.00\",\n                \"se\": \"82.76\",\n                \"sri\": \"80.78\",\n                \"naw\": \"39\",\n                \"daw\": \"3.64\",\n                \"mi\": \"4.24\",\n                \"ai\": \"16.00\"\n            },\n            {\n                \"day_idx\": \"5\",\n                \"start_date\": \"2024-09-07 00:00:00\",\n                \"end_date\": \"2024-09-07 00:00:00\",\n                \"sleep_onset\": \"01:06:00\",\n                \"sleep_offset\": \"08:11:00\",\n                \"tst\": \"347.00\",\n                \"se\": \"81.65\",\n                \"sri\": \"80.78\",\n                \"naw\": \"40\",\n                \"daw\": \"7.85\",\n                \"mi\": \"5.05\",\n                \"ai\": \"21.50\"\n            },\n            {\n                \"day_idx\": \"6\",\n                \"start_date\": \"2024-09-07 00:00:00\",\n                \"end_date\": \"2024-09-07 00:00:00\",\n                \"sleep_onset\": \"14:47:00\",\n                \"sleep_offset\": \"15:24:00\",\n                \"tst\": \"35.00\",\n                \"se\": \"97.22\",\n                \"sri\": \"80.78\",\n                \"naw\": \"2\",\n                \"daw\": \"0.50\",\n                \"mi\": \"0.00\",\n                \"ai\": \"0.00\"\n            },\n            {\n                \"day_idx\": \"7\",\n                \"start_date\": \"2024-09-08 00:00:00\",\n                \"end_date\": \"2024-09-08 00:00:00\",\n                \"sleep_onset\": \"01:23:00\",\n                \"sleep_offset\": \"08:54:00\",\n                \"tst\": \"381.00\",\n                \"se\": \"84.48\",\n                \"sri\": \"80.78\",\n                \"naw\": \"48\",\n                \"daw\": \"3.66\",\n                \"mi\": \"3.22\",\n                \"ai\": \"14.50\"\n            },\n            {\n                \"day_idx\": \"8\",\n                \"start_date\": \"2024-09-09 00:00:00\",\n                \"end_date\": \"2024-09-09 00:00:00\",\n                \"sleep_onset\": \"00:19:00\",\n                \"sleep_offset\": \"07:11:00\",\n                \"tst\": \"367.00\",\n                \"se\": \"89.08\",\n                \"sri\": \"80.78\",\n                \"naw\": \"40\",\n                \"daw\": \"3.75\",\n                \"mi\": \"3.88\",\n                \"ai\": \"16.00\"\n            }\n        ],\n        \"plots\": [\n            \"https://aws-path/plot1.png\",\n            \"https://aws-path/plot2.png\",\n            \"https://aws-path/plot_gauge_se_sri.png\",\n            \"https://aws-path/plot4_tst.png\",\n            \"https://aws-path/plot4_waso.png\",\n            \"https://aws-path/plot4_se.png\",\n            \"https://aws-path/plot4_Law.png\",\n            \"https://aws-path/plot4_Naw.png\",\n            \"https://aws-path/plot4_frag_ind.png\",\n            \"https://aws-path/plot4_activity_ind.png\",\n            \"https://aws-path/plot4_sri.png\",\n            \"https://aws-path/sleep_metrics_radar.png\",\n            \"https://aws-path/opt_plot_temp.png\",\n            \"https://aws-path/opt_plot_offwrist.png\",\n            \"https://aws-path/opt_plot_alertness.png\",\n            \"https://aws-path/opt_plot_kss.png\",\n            \"https://aws-path/opt_plot_cosinor.png\",\n            \"https://aws-path/opt_plot_dlmo.png\",\n            \"https://aws-path/opt_plot_ssa.png\",\n            \"https://aws-path/opt_plot_flm.png\"\n        ],\n        \"normative_kpis_cat\": {\n            \"tst\": 0,\n            \"waso\": 1,\n            \"se\": 1,\n            \"sri\": 0,\n            \"daw\": 1,\n            \"naw\": 1,\n            \"mi\": 0,\n            \"ai\": 1\n        },\n        \"daily_osas\": {\n            \"2024-09-01 01:23\": 0,\n            \"2024-09-02 00:15\": 1,\n            \"2024-09-03 19:53\": 1,\n            \"2024-09-04 00:19\": 2,\n            \"2024-09-05 00:50\": 2,\n            \"2024-09-06 00:21\": 1,\n            \"2024-09-07 01:06\": 0,\n            \"2024-09-08 01:23\": 0,\n            \"2024-09-09 00:19\": 0\n        },\n        \"daily_steps\": {\n            \"2024-09-01\": \"4675\",\n            \"2024-09-02\": \"3817 *\",\n            \"2024-09-03\": \"3164 *\",\n            \"2024-09-04\": \"2990 *\",\n            \"2024-09-05\": \"4353\",\n            \"2024-09-06\": \"3693 *\",\n            \"2024-09-07\": \"12991\",\n            \"2024-09-08\": \"2349 *\",\n            \"2024-09-09\": \"720 **\"\n        },\n        \"unreliable_exam\": false,\n        \"reporting_suggestions\": \"The self-generated reporting notes suggestions...\",\n        \"public_url\": \"https://the-exam-public-link\"\n    }\n}"}],"_postman_id":"da9aacba-edf1-4e5d-8db3-784641e4e58f"},{"name":"get_exams","id":"52b76ca9-3380-4cab-a702-a5b9d878fa78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_exams","description":"<p>Returns the list of of the last \"num_records\" exams.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_exams"],"host":["{{FRONTEND_BASE_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>the number of the exams to be returned (default 10)</p>\n","type":"text/plain"},"key":"num_records","value":"{{NUM_RECORDS}}"},{"disabled":true,"description":{"content":"<p>the starting record (default 1)</p>\n","type":"text/plain"},"key":"start","value":"{{START}}"},{"disabled":true,"description":{"content":"<p>order-by clause (\"id\", \"creation_date\", \"status\")</p>\n","type":"text/plain"},"key":"order_by","value":"{{ORDER_BY}}"},{"disabled":true,"description":{"content":"<p>asc/desc ordering (\"asc\" or \"desc\" values)</p>\n","type":"text/plain"},"key":"asc_desc","value":"{{ASC_DESC}}"},{"disabled":true,"description":{"content":"<p>monitoring start date (yyyy-mm-dd)</p>\n","type":"text/plain"},"key":"start_date","value":"{{START_DATE}}"},{"disabled":true,"description":{"content":"<p>monitoring end date  (yyyy-mm-dd)</p>\n","type":"text/plain"},"key":"end_date","value":"{{END_DATE}}"},{"disabled":true,"description":{"content":"<p>patient info (e.g. anonymous identifier)</p>\n","type":"text/plain"},"key":"patient","value":"{{PATIENT}}"},{"disabled":true,"description":{"content":"<p>\"completed\" or \"error\"</p>\n","type":"text/plain"},"key":"status","value":"{{STATUS}}"},{"disabled":true,"description":{"content":"<p>the unique identifier of the accont that created the exam</p>\n","type":"text/plain"},"key":"account_id","value":"{{ACCOUNT_ID}}"},{"disabled":true,"description":{"content":"<p>monitoring end date  (yyyy-mm-dd)</p>\n","type":"text/plain"},"key":"ended_after","value":"{{ENDED_AFTER}}"},{"disabled":true,"description":{"content":"<p>minimum exam id to be returned</p>\n","type":"text/plain"},"key":"min_exam_id","value":"{{MIN_EXAM_ID}}"},{"disabled":true,"description":{"content":"<p>the \"external identifier\" of the patient (this belongs to the external identifier of the account that created the exam, when the account is of type \"end-user\")</p>\n","type":"text/plain"},"key":"patient_external_identifier","value":"{{PATIENT_EXTERNAL_IDENTIFIER}}"}],"variable":[]}},"response":[{"id":"ffc6e6f7-26df-4fe8-812a-e4c8b419d34a","name":"get_exams_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{FRONTEND_BASE_URL}}/api/get_exams?num_records=2","host":["{{FRONTEND_BASE_URL}}"],"path":["api","get_exams"],"query":[{"key":"num_records","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sat, 13 Sep 2025 07:56:08 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.109;desc=Process-Time"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=TbMXtcRszI0XD1guiRcZJUnC7Rml3R9W7cQ7mSKHePEQxQVTL%2Bq%2B2TvwrERE8xeUxSTa1fri3xelHScq218xnB%2BeZqSKyNSGYYiavdQBZqn85EPhY7eFw9L16AW6mg%3D%3D\"}]}"},{"key":"CF-RAY","value":"97e61614d852aa2d-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"exams\": [\n        {\n            \"exam_id\": \"451\",\n            \"partner_name\": \"Demo Partner\",\n            \"exam_type\": \"sleep+apnea\",\n            \"creation_date\": \"2025-09-11 12:02:22\",\n            \"creator\": {\n                \"name\": \"John Smith\",\n                \"id\": 34\n            },\n            \"device\": {\n                \"producer\": \"Sleepacta\",\n                \"vendor_code\": \"25-00018\"\n            },\n            \"delivery\": {\n                \"delivery_id\": \"118\",\n                \"account_name\": \"John Smith\",\n                \"creation_date\": \"2025-09-01 12:01:00\",\n                \"delivery_date\": \"2025-09-01 12:01:00\",\n                \"annotations\": \"\"\n            },\n            \"patient\": {\n                \"age\": 34,\n                \"nickname\": \"TB\",\n                \"gender\": \"M\",\n                \"weight\": 60,\n                \"height\": 175,\n                \"external_identifier\": \"my-external-id\"\n            },\n            \"start_date\": \"2025-09-01 12:01:00\",\n            \"end_date\": \"2025-09-11 11:51:00\",\n            \"status\": \"completed\",\n            \"doctor_name\": null,\n            \"reporting_date\": null,\n            \"annotations\": \"\",\n            \"timezone\": \"Europe/Rome\",\n            \"language\": \"it\"\n        },\n        {\n            \"exam_id\": \"450\",\n            \"partner_name\": \"Demo Partner\",\n            \"exam_type\": \"sleep+apnea\",\n            \"creation_date\": \"2025-09-10 19:57:07\",\n            \"creator\": {\n                \"name\": \"John Smith\",\n                \"id\": 34\n            },\n            \"device\": {\n                \"producer\": \"Sleepacta\",\n                \"vendor_code\": \"25-00010\"\n            },\n            \"delivery\": {\n                \"delivery_id\": \"117\",\n                \"account_name\": \"John Smith\",\n                \"creation_date\": \"2025-09-05 17:00:00\",\n                \"delivery_date\": \"2025-09-05 17:00:00\",\n                \"annotations\": \"\"\n            },\n            \"patient\": {\n                \"age\": 54,\n                \"nickname\": \"AV\",\n                \"gender\": \"M\",\n                \"weight\": 80,\n                \"height\": 185\n            },\n            \"start_date\": \"2025-09-05 17:00:00\",\n            \"end_date\": \"2025-09-10 19:30:00\",\n            \"status\": \"completed\",\n            \"doctor_name\": null,\n            \"reporting_date\": null,\n            \"annotations\": \"\",\n            \"timezone\": \"Europe/Rome\",\n            \"language\": \"en\"\n        }\n    ]\n}"}],"_postman_id":"52b76ca9-3380-4cab-a702-a5b9d878fa78"},{"name":"get_partner_logo","id":"c9af86f5-0cdc-424b-843d-ad968c120234","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_partner_logo","description":"<p>Returns the partner logo in JPG format.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_partner_logo"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9af86f5-0cdc-424b-843d-ad968c120234"},{"name":"get_device","id":"a299f72c-ce4e-4f88-b36a-d66dc3eacb8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_device?device_code={{DEVICE_CODE}}","description":"<p>Returns the device details given its ID or its code (one of them is mandatory).</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_device"],"host":["{{FRONTEND_BASE_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>the ID of the device to be returned</p>\n","type":"text/plain"},"key":"id","value":"{{DEVICE_ID}}"},{"description":{"content":"<p>the code of the device to be returned</p>\n","type":"text/plain"},"key":"device_code","value":"{{DEVICE_CODE}}"}],"variable":[]}},"response":[{"id":"d81259f0-7892-466c-87f3-2ed3a5f794ed","name":"get_device_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{FRONTEND_BASE_URL}}/api/get_device?device_code={{DEVICE_CODE}}","host":["{{FRONTEND_BASE_URL}}"],"path":["api","get_device"],"query":[{"key":"id","value":"{{DEVICE_ID}}","description":"the ID of the exam to be returned","disabled":true},{"key":"device_code","value":"{{DEVICE_CODE}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 21 May 2026 13:25:06 GMT"},{"key":"Server","value":"Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12"},{"key":"X-Powered-By","value":"PHP/8.2.12"},{"key":"Set-Cookie","value":"PHPSESSID=42b38fftc18s86rquf4ah5hbtn; path=/"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"167"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json;charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"device\": {\n        \"device_id\": \"143\",\n        \"vendor_code\": \"26-00133\",\n        \"producer\": \"Sleepacta\",\n        \"model\": \"Signal\",\n        \"location\": \"Sleepacta Office\",\n        \"owner\": \"Sleepacta\",\n        \"account_name_filter\": \"\",\n        \"creation_date\": \"2026-04-21 20:28:22\",\n        \"account_name_filter\": \"\",\n        \"is_delivered\": \"1\",\n        \"delivery\": {\n            \"delivery_id\": \"121\",\n            \"account_name\": \"My Account\",\n            \"creation_date\": \"2026-04-21 23:10:34\",\n            \"delivery_date\": \"2026-04-21 23:10:00\",\n            \"annotations\": \"\",\n            \"patient_identifier\": \"PN\",\n            \"patient_age\": \"33\",\n            \"patient_weight\": \"85\",\n            \"patient_height\": \"187\",\n            \"patient_gender\": \"M\",\n            \"patient_external_identifier\": \"my-external-id\"\n        }\n    }\n}"}],"_postman_id":"a299f72c-ce4e-4f88-b36a-d66dc3eacb8a"},{"name":"get_notifications","id":"586be54c-cb88-4055-8346-ad0de42cabdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_notifications","description":"<p>Returns a private notification for the currently logged user (if any).</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_notifications"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"144a6c3c-3298-4df9-8d9b-4351bda5b00f","name":"get_notifications","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_notifications"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Date","value":"Fri, 20 Mar 2026 16:41:01 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"425"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"x-powered-by","value":"PHP/8.1.34"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.121;desc=Process-Time"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=snLs0f%2BEL8PHK8j%2BAfHzhe6aviPqahFaMPsooX%2FAWtwz2dF3%2BzB8%2FeIDxL4LcbyHBTevyFdhrLykCNAUMRjXJbzY7Oqma8CgqjrYDGWolsd6c%2BDbCd4%3D\"}]}"},{"key":"CF-RAY","value":"9df6297408091ff7-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"communication\": \"This is a private communication for you.\"\n}"}],"_postman_id":"586be54c-cb88-4055-8346-ad0de42cabdb"},{"name":"get_accounts","id":"a15dbcfe-330c-4ed7-aff3-8920b535a58e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_accounts","description":"<p>Returns the list of of the last \"num_records\" accounts.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_accounts"],"host":["{{FRONTEND_BASE_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>the number of the accounts to be returned (default 10)</p>\n","type":"text/plain"},"key":"num_records","value":"{{NUM_RECORDS}}"},{"disabled":true,"description":{"content":"<p>the starting record (default 1)</p>\n","type":"text/plain"},"key":"start","value":"{{START}}"},{"disabled":true,"description":{"content":"<p>order-by clause (\"id\", \"creation_date\", \"status\")</p>\n","type":"text/plain"},"key":"order_by","value":"{{ORDER_BY}}"},{"disabled":true,"description":{"content":"<p>asc/desc ordering (\"asc\" or \"desc\" values)</p>\n","type":"text/plain"},"key":"asc_desc","value":"{{ASC_DESC}}"},{"disabled":true,"description":{"content":"<p>the account username</p>\n","type":"text/plain"},"key":"username","value":"{{USERNAME}}"},{"disabled":true,"description":{"content":"<p>the account name</p>\n","type":"text/plain"},"key":"name","value":"{{NAME}}"},{"disabled":true,"description":{"content":"<p>the account email</p>\n","type":"text/plain"},"key":"email","value":"{{EMAIL}}"},{"disabled":true,"description":{"content":"<p>boolean (\"0\" or \"1\")</p>\n","type":"text/plain"},"key":"enabled","value":"{{ENABLED}}"},{"disabled":true,"description":{"content":"<p>the account external identifier</p>\n","type":"text/plain"},"key":"external_identifier","value":"{{EXTERNAL_IDENTIFIER}}"}],"variable":[]}},"response":[{"id":"5226f595-eb49-402b-af3a-b504903458d3","name":"get_accounts_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{FRONTEND_BASE_URL}}/api/get_accounts?num_records={{NUM_RECORDS}}&start={{START}}&order_by={{ORDER_BY}}&asc_desc={{ASC_DESC}}","host":["{{FRONTEND_BASE_URL}}"],"path":["api","get_accounts"],"query":[{"key":"num_records","value":"{{NUM_RECORDS}}","description":"the number of the exams to be returned (default 10)"},{"key":"start","value":"{{START}}","description":"the starting record (default 1)"},{"key":"order_by","value":"{{ORDER_BY}}","description":"order-by clause (\"id\", \"creation_date\", \"status\")"},{"key":"asc_desc","value":"{{ASC_DESC}}","description":"asc/desc ordering (\"asc\" or \"desc\" values)"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 27 Jan 2026 11:42:32 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"x-powered-by","value":"PHP/8.1.33"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.099;desc=Process-Time"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=npTvRllBrOUMrEaMRLjCDjA8dMZltvRaWndt5LerJzZN%2FuVjrXv5ZCgCL638dw7Cao7pdr6lMzeOgi8aHwSTZKL4RAxpGLrhoD3%2BL4MnOpKOBxeMksPypRIFH%2BELxg%3D%3D\"}]}"},{"key":"CF-RAY","value":"9c47fcbc2a368062-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"accounts\": [\n        {\n            \"account_id\": \"1\",\n            \"name\": \"John Smith\",\n            \"username\": \"john\",\n            \"email\": \"johnsmith@themail.com\",\n            \"can_create_exams\": \"1\",\n            \"can_view_exams\": \"1\",\n            \"can_report_exams\": \"1\",\n            \"has_admin_features\": \"1\",\n            \"can_access_billing_data\": \"1\",\n            \"can_create_devices\": \"0\",\n            \"can_receive_reporting_requests\": \"1\",\n            \"can_use_only_own_devices\": \"0\",\n            \"has_advanced_gui_options\": \"0\",\n            \"external_identifier\": null,\n            \"skip_otp\": \"1\",\n            \"is_end_user\": \"0\",\n            \"age\": null,\n            \"weight\": null,\n            \"height\": null,\n            \"gender\": null,\n            \"assigned_devices\": [\n                {\n                    \"device_id\": \"145\",\n                    \"vendor_code\": \"26-00135\",\n                    \"producer\": \"Sleepacta\",\n                    \"model\": \"Signal\",\n                    \"location\": \"Sleepacta Office\",\n                    \"owner\": \"Sleepacta\",\n                    \"creation_date\": \"2026-04-25 15:14:11\",\n                    \"account_name_filter\": \"john, other-username\"\n                }\n            ]\n        },\n        {\n            \"account_id\": \"2\",\n            \"name\": \"Seraphina White\",\n            \"username\": \"seraphina\",\n            \"email\": \"seraphina.white@themail.com\",\n            \"can_create_exams\": \"1\",\n            \"can_view_exams\": \"1\",\n            \"can_report_exams\": \"1\",\n            \"has_admin_features\": \"0\",\n            \"can_access_billing_data\": \"0\",\n            \"can_create_devices\": \"0\",\n            \"can_receive_reporting_requests\": \"0\",\n            \"can_use_only_own_devices\": \"0\",\n            \"has_advanced_gui_options\": \"0\",\n            \"external_identifier\": \"the-external-id\",\n            \"skip_otp\": \"0\",\n            \"is_end_user\": \"1\",\n            \"age\": \"37\",\n            \"weight\": \"175\",\n            \"height\": \"50\",\n            \"gender\": \"F\"\n        }\n    ]\n}"}],"_postman_id":"a15dbcfe-330c-4ed7-aff3-8920b535a58e"},{"name":"insert_account","id":"c0568bfb-25d5-42a2-b6cd-9205608d4fca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{NEW_USERNAME}}\",\r\n    \"password\": \"{{NEW_PASSWORD}}\",\r\n    \"email\": \"{{NEW_EMAIL}}\",\r\n    \"name\": \"{{NEW_FULL_NAME}}\",\r\n    \"max_exams\": 10,\r\n    \"can_use_only_own_devices\": \"1\",\r\n    \"assigned_device_code\": \"{{DEVICE_CODE}}\",\r\n    \"can_create_exams\": \"1\",\r\n    \"can_view_exams\": \"0\",\r\n    \"external_identifier\": \"{{EXTERNAL_IDENTIFIER}}\",\r\n    \"notifications_language\": \"en\",\r\n    \"is_end_user\": \"1\",\r\n    \"age\": 33,\r\n    \"gender\": \"M\",\r\n    \"height\": 187,\r\n    \"weight\": 80\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/insert_account","description":"<p>Inserts an account.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n<ul>\n<li><p>\"max_exams\" and \"assigned_device_code\" are optional</p>\n</li>\n<li><p>\"assigned_device_code\" must refer to a device provided to the current partner -&gt; if specified, the device will be <em>assigned</em> to this account</p>\n</li>\n<li><p>if \"can_use_only_own_devices\" is set to \"1\" then the account can access only the devices <em>tagged</em> with his username (otherwise, the account can access also to all the devices with empty <em>username-tags</em>)</p>\n</li>\n</ul>\n","urlObject":{"path":["api","insert_account"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a4129192-e037-48f2-96de-f91898a6b3ce","name":"insert_account_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"device_id\": \"89\",\r\n    \"patient_identifier\": \"the-anonymous-patient-identifier\",\r\n    \"patient_age\": \"50\",\r\n    \"patient_gender\": \"M\",\r\n    \"patient_height\": \"185\",\r\n    \"patient_weight\": \"80\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners-testing.sleepacta.com/api/insert_delivery"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 12 Apr 2025 08:01:17 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.096;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=1974&min_rtt=1782&rtt_var=805&sent=3&recv=5&lost=0&retrans=0&sent_bytes=219&recv_bytes=1376&delivery_rate=812570&cwnd=250&unsent_bytes=0&cid=b62ab2a9b8bb73b2&ts=426&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=fyqLMVewEl%2FFOMb4Ez0%2Bg%2B%2BnBcm0LK0vTIeLuR9DReXX2O2Lo4GhMdWWIMaG6H0AzbfeAicPy1Omb7B6%2F%2B%2Ftqdvr%2BxEweQQmqmD3HjZH5DTGSPRw1st4p8yAyNwiduC4rPXKhir1YbF8WZCTjGfIjWk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f131e2d93d87a1-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"new_account_id\": \"30\"\n}"}],"_postman_id":"c0568bfb-25d5-42a2-b6cd-9205608d4fca"},{"name":"update_account","id":"fb59312a-37da-486c-95c1-5471045fbfd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"{{ACCOUNT_ID}}\",\r\n    \"username\": \"{{MODIFIED_USERNAME}}\",\r\n    \"password\": \"{{MODIFIED_PASSWORD}}\",\r\n    \"email\": \"{{MODIFIED_EMAIL}}\",\r\n    \"name\": \"{{MODIFIED_FULL_NAME}}\",\r\n    \"max_exams\": 5,\r\n    \"external_identifier\": \"{{MODIFIED_EXTERNAL_IDENTIFIER}}\",\r\n    \"can_use_only_own_devices\": \"1\",\r\n    \"can_create_exams\": \"1\",\r\n    \"can_view_exams\": \"0\",\r\n    \"enabled\": \"1\",\r\n    \"assigned_device_code\": \"{{MODIFIED_DEVICE_CODE}}\",\r\n    \"notifications_language\": \"en\",\r\n    \"is_end_user\": \"1\",\r\n    \"age\": 33,\r\n    \"gender\": \"M\",\r\n    \"height\": 187,\r\n    \"weight\": 80\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/update_account","description":"<p>Updates an account.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n<ul>\n<li><p>except for \"id\", all other fields are are optional</p>\n</li>\n<li><p>\"assigned_device_code\" must refer to a device provided to the current partner -&gt; if specified, the device will be <em>assigned</em> to this account</p>\n</li>\n<li><p>by setting \"enabled\" to \"0\" the account will be disabled</p>\n</li>\n</ul>\n","urlObject":{"path":["api","update_account"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"0142fe1b-ca21-4148-a00a-49b73d917bfe","name":"update_account_response","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"{{ACCOUNT_ID}}\",\r\n    \"username\": \"modified-account-username\",\r\n    \"password\": \"modified-account-password\",\r\n    \"email\": \"modified-account@email.com\",\r\n    \"name\": \"John Smith Modified\",\r\n    \"max_exams\": 5,\r\n    \"assigned_device_code\": \"0001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/update_account"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 11 Nov 2025 00:47:40 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"177"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"x-powered-by","value":"PHP/8.1.33"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.100;desc=Process-Time"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=MNsdKtTKbgYeD%2BGtqVXPawj9DsrT1B6gIGmXc3x6AUHSzA3iP%2Bzxjh03khN6uC5kYeAxQUzJryz7zjMWoPx%2FRaR3OaPbqhQ0hU5xZ6e8NGfZtxISg%2FPZTHvjAGIyTg%3D%3D\"}]}"},{"key":"CF-RAY","value":"99c9c793ec11c130-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"updated_account\": {\n        \"username\": \"modified-account-username\",\n        \"password\": \"modified-account-password\",\n        \"name\": \"John Smith Modified\",\n        \"email\": \"modified-account@email.com\",\n        \"max_exams\": 5,\n        \"enabled\": \"1\",\n        \"can_use_only_own_devices\": \"1\",\n        \"assigned_device_code\": \"my-device-code\",\n        \"notifications_language\": \"en\",\n        \"is_end_user\": \"1\",\n        \"age\": 33,\n        \"gender\": \"M\",\n        \"height\": 187,\n        \"weight\": 80\n    }\n}"}],"_postman_id":"fb59312a-37da-486c-95c1-5471045fbfd4"},{"name":"update_patient_nickname","id":"add4183d-0bd0-4f29-965a-b7ce4f0f1550","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"exam_id\": \"{{EXAM_ID}}\",\r\n    \"nickname\": \"modified-nickname\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/update_patient_nickname","description":"<p>Updates the patient nickname of a given exam.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n<ul>\n<li>\"exam_id\" and \"nickname\" are mandatory</li>\n</ul>\n","urlObject":{"path":["api","update_patient_nickname"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"1f6686b1-b966-4287-9f03-f9ca2ae039fb","name":"update_patient_nickname_response","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"APIauth: your-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"exam_id\": \"your-exam-id\",\r\n    \"nickname\": \"modified-nickname\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.sleepacta.com//api/update_patient_nickname"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Date","value":"Thu, 19 Mar 2026 22:48:55 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"93"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"x-powered-by","value":"PHP/8.1.34"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.791;desc=Process-Time"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=TqWZ28woq%2B%2BjRj5Y5Y4%2FqZ2RjDKZPKKCCLjtOU6DoPcrXZ14ZtFMo594T7C6NLM%2BBp%2FoOSWsG0FkYnW2HnBYUGb62YFOl%2F6rw06LvNXHGucxfLbRoSs%3D\"}]}"},{"key":"CF-RAY","value":"9df006fed9542ade-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"new_patient_nickname\": \"modified-nickname\"\n}"}],"_postman_id":"add4183d-0bd0-4f29-965a-b7ce4f0f1550"},{"name":"update_patient_external_identifier","id":"2515b091-11d2-4e3a-9fa6-ed679725cc1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"exam_id\": \"{{EXAM_ID}}\",\r\n    \"patient_external_identifier\": \"modified-external-identifier\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/update_patient_external_identifier","description":"<p>Updates the patient external identifier of a given exam.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n<ul>\n<li>\"exam_id\" and \"patient_external_identifier\" are mandatory</li>\n</ul>\n","urlObject":{"path":["api","update_patient_external_identifier"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"4f30faa7-2ef2-44ef-b65a-014cb050ce85","name":"update_patient_external_identifier_response","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"exam_id\": \"{{EXAM_ID}}\",\r\n    \"patient_external_identifier\": \"modified-external-identifier\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/update_patient_external_identifier"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Fri, 24 Apr 2026 15:01:38 GMT"},{"key":"Server","value":"Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12"},{"key":"X-Powered-By","value":"PHP/8.2.12"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"112"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json;charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"new_patient_external_identifier\": \"modified-external-identifier\"\n}"}],"_postman_id":"2515b091-11d2-4e3a-9fa6-ed679725cc1b"},{"name":"get_gui_logs_by_delivery_id","id":"d5906d9b-69de-4c56-aa51-ea28a41b735b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/get_gui_logs_by_delivery_id?delivery_id={{DELIVERY_ID}}","description":"<p>Returns the list of of the last \"num_records\" GUI logs.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","get_gui_logs_by_delivery_id"],"host":["{{FRONTEND_BASE_URL}}"],"query":[{"disabled":true,"description":{"content":"<p>the number of the GUI logs to be returned (default 10)</p>\n","type":"text/plain"},"key":"num_records","value":"{{NUM_RECORDS}}"},{"disabled":true,"description":{"content":"<p>the starting record (default 1)</p>\n","type":"text/plain"},"key":"start","value":"{{START}}"},{"disabled":true,"description":{"content":"<p>order-by clause (\"id\", \"creation_date\", \"status\")</p>\n","type":"text/plain"},"key":"order_by","value":"{{ORDER_BY}}"},{"disabled":true,"description":{"content":"<p>asc/desc ordering (\"asc\" or \"desc\" values)</p>\n","type":"text/plain"},"key":"asc_desc","value":"{{ASC_DESC}}"},{"description":{"content":"<p>the delivery identifier</p>\n","type":"text/plain"},"key":"delivery_id","value":"{{DELIVERY_ID}}"}],"variable":[]}},"response":[{"id":"1b3e26dd-c673-4314-b8f6-3803016ca034","name":"get_gui_logs_by_delivery_id_response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{FRONTEND_BASE_URL}}/api/get_accounts?num_records={{NUM_RECORDS}}&start={{START}}&order_by={{ORDER_BY}}&asc_desc={{ASC_DESC}}","host":["{{FRONTEND_BASE_URL}}"],"path":["api","get_accounts"],"query":[{"key":"num_records","value":"{{NUM_RECORDS}}","description":"the number of the exams to be returned (default 10)"},{"key":"start","value":"{{START}}","description":"the starting record (default 1)"},{"key":"order_by","value":"{{ORDER_BY}}","description":"order-by clause (\"id\", \"creation_date\", \"status\")"},{"key":"asc_desc","value":"{{ASC_DESC}}","description":"asc/desc ordering (\"asc\" or \"desc\" values)"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 27 Jan 2026 11:42:32 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"cloudflare"},{"key":"x-powered-by","value":"PHP/8.1.33"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.099;desc=Process-Time"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=npTvRllBrOUMrEaMRLjCDjA8dMZltvRaWndt5LerJzZN%2FuVjrXv5ZCgCL638dw7Cao7pdr6lMzeOgi8aHwSTZKL4RAxpGLrhoD3%2BL4MnOpKOBxeMksPypRIFH%2BELxg%3D%3D\"}]}"},{"key":"CF-RAY","value":"9c47fcbc2a368062-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"gui_logs\": [\n        {\n            \"log_id\": \"1\",\n            \"account_name\": \"Demo User\",\n            \"creation_date\": \"2026-03-20 09:25:56\",\n            \"log_text\": {...}\n            \n        },\n        {\n            \"log_id\": \"2\",\n            \"account_name\": \"Demo User\",\n            \"creation_date\": \"2026-03-25 09:23:40\",\n            \"log_text\": {...}\n        }\n    ]\n}"}],"_postman_id":"d5906d9b-69de-4c56-aa51-ea28a41b735b"},{"name":"log_gui_execution","id":"c5e338d4-ba8d-4594-922c-2187775f1d44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": {{ACCOUNT_ID}},\r\n    \"delivery_id\": {{DELIVERY_ID}},\r\n    \"log_text\": \"this is a log\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/log_gui_execution","description":"<p>Creates an exam from an ongoing delivery (whose identifier must be passed as a parameter).</p>\n<p>The \"exam_type\" parameter is mandatory (possible values: \"sleep\", \"sleep+apnea\").</p>\n<p>The \"lang\" parameter is optional (possible values: \"it\", \"en\", \"fr\", default \"it\").</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","log_gui_execution"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5e338d4-ba8d-4594-922c-2187775f1d44"},{"name":"set_partner_id","id":"11185b04-fbe8-4ed0-8f12-5351c6171457","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"partner_id\": \"{{PARTNER_ID}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/set_partner_id","description":"<p>This allows to switch partner (among the ones visible by the currently logged user).</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","set_partner_id"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"fdfffd1b-ce26-491a-811f-9d71d3c5e533","name":"set_partner_id_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"partner_id\": \"{{PARTNER_ID}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/set_partner_id"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Date","value":"Fri, 15 May 2026 15:06:21 GMT"},{"key":"Server","value":"Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12"},{"key":"X-Powered-By","value":"PHP/8.2.12"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"1381"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json;charset=utf-8"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"auth_data\": {\n        \"token\": \"my-token-token\",\n        \"expiration\": \"2026-05-16 17:06:21\",\n        \"curr_partner_id\": \"5\",\n        \"curr_account_name\": null,\n        \"curr_account_username\": \"MyUsername\",\n        \"curr_account_id\": \"1\",\n        \"curr_account_external_identifier\": \"my-external-id\",\n        \"curr_account_is_end_user\": \"0\",\n        \"curr_account_age\": null,\n        \"curr_account_weight\": null,\n        \"curr_account_height\": null,\n        \"curr_account_gender\": null,\n        \"curr_account_can_use_only_own_devices\": \"0\",\n        \"curr_account_has_advanced_gui_options\": \"0\",\n        \"curr_account_has_beta_firmware_access\": \"1\",\n        \"curr_account_role\": \"1\",\n        \"curr_partner_name\": \"Parner Name\",\n        \"curr_partner_timezone\": \"Europe/Rome\",\n        \"curr_partner_dormi_apnea_mode\": \"standard\",\n        \"curr_partner_additional_analysis\": \"...\",\n        \"curr_partner_device_configurations\": [...]\n    }\n}"}],"_postman_id":"11185b04-fbe8-4ed0-8f12-5351c6171457"},{"name":"insert_shipment","id":"3005883d-6500-4619-a23b-bf09c37960e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"APIauth: {{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"referral_code\": \"DEMO\",\r\n    \"end_user_name\": \"Johnn\",\r\n    \"end_user_surname\": \"Smith\",\r\n    \"end_user_address_street\": \"Via Tal dei tali, 563/A\",\r\n    \"end_user_address_postal_code\": \"56121\",\r\n    \"end_user_address_city\": \"Pisa\",\r\n    \"end_user_address_province\": \"PI\",\r\n    \"end_user_country\": \"Italia\",\r\n    \"end_user_email\": \"myemail@gmail.com\",\r\n    \"end_user_age\": \"52\",\r\n    \"end_user_gender\": \"M\",\r\n    \"end_user_height\": \"187\",\r\n    \"end_user_weight\": \"82\",\r\n    \"annotations\": \"test annotation\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{FRONTEND_BASE_URL}}/api/insert_shipment","description":"<p>Inserts a shipment request.</p>\n<p>The target partner must have \"shipments\" and \"deliveries\" functionalities enabled.</p>\n<p>This is an autenicated endpoint, which requires passing the authentication token in the Authorization header (prefixed with “APIauth: ”).</p>\n","urlObject":{"path":["api","insert_shipment"],"host":["{{FRONTEND_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"01ddae92-b482-4378-8604-e4af8ef8efb9","name":"insert_shipment_response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"APIauth: your-auth-token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"referral_code\": \"DEMO\",\r\n    \"end_user_name\": \"Johnn\",\r\n    \"end_user_surname\": \"Smith\",\r\n    \"end_user_address_street\": \"Via Tal dei tali, 12\",\r\n    \"end_user_address_postal_code\": \"56121\",\r\n    \"end_user_address_city\": \"Pisa\",\r\n    \"end_user_address_province\": \"PI\",\r\n    \"end_user_country\": \"Italia\",\r\n    \"end_user_email\": \"my-email@gmail.com\",\r\n    \"end_user_age\": \"52\",\r\n    \"end_user_gender\": \"M\",\r\n    \"end_user_height\": \"187\",\r\n    \"end_user_weight\": \"82\",\r\n    \"annotations\": \"test annotation\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://partners-testing.sleepacta.com/api/insert_shipment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 12 Apr 2025 07:45:40 GMT"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"},{"key":"server-timing","value":"rt;dur=0.103;desc=Process-Time"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=2299&min_rtt=2085&rtt_var=935&sent=3&recv=5&lost=0&retrans=0&sent_bytes=219&recv_bytes=1717&delivery_rate=694484&cwnd=209&unsent_bytes=0&cid=d1dfbcf5c30652ae&ts=429&x=0\""},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=uqw1TRJt3s7xwjJkn9%2BlDM14yjVUa4kCP4pqEiX%2F%2FTCrYIM9Bd8wQjvz9Z3zSThdrWsmngBvZnaTlJvfhnS%2Fu%2BLKrzCWyuX8xghOVlmw%2FlyvWSCvLJr6xtNGf94e9FRURubGbKLDKd5ZAlRggsu1YUs%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"92f11afe8bc6c9bd-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Operation executed.\",\n    \"new_shipment_id\": \"93\"\n}"}],"_postman_id":"3005883d-6500-4619-a23b-bf09c37960e8"}],"event":[{"listen":"prerequest","script":{"id":"f877540e-99da-4431-a711-c7a602f25412","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"814a6980-2bd9-4053-a4e8-eb84a61d98ca","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"FRONTEND_BASE_URL","value":"https://partners.sleepacta.com","disabled":true}]}