{"info":{"_postman_id":"1b1f00c0-a691-4c76-9b1d-a237a1beb08c","name":"Seenkit API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>The Seenkit API allows your system to connect to Seenkit to manage your recordings as well as to create new ones.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>The Seenkit API follows the REST architectural schema.<br>All calls are to be made with the right HTTP method (GET, POST, PUT, DELETE).<br>The response is always in JSON format.<br>Correct requests will get a 200 OK code.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>All requests will be authenticated through a JWT Bearer token in the Authorization header. The JWT token has to be signed using your account API Secret key.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>Error codes are of the following types:</p>\n<p>400 Bad Request<br>401 Not Authorized<br>404 Not Found<br>500 Internal Server Error</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"13276783","collectionId":"1b1f00c0-a691-4c76-9b1d-a237a1beb08c","publishedId":"TzXtHfAf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-06-10T14:40:24.000Z"},"item":[{"name":"Units","event":[{"listen":"prerequest","script":{"id":"57cb581f-0062-4793-ac1d-58b738d62842","exec":[""],"type":"text/javascript"}}],"id":"c0c719de-72f8-474f-9662-6190ddf49ac6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/","description":"<p>Returns the Seenkit users's list of units</p>\n","urlObject":{"protocol":"https","path":["api","units",""],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"a43233dc-910e-4540-8ca8-6bcc1a6674d1","name":"Units","originalRequest":{"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 08:52:28 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"SNKTAPI=ijjo17mhfrd5kmhmoa2l7vb4vo; path=/; domain=.seenkit.com; secure; HttpOnly"},{"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":"3637"},{"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    {\n        \"description\": \"This is my first unit\",\n        \"title\": \"My first unit\",\n        \"date\": \"2021-05-27T10:46:20+00:00\",\n        \"external_data\": \"{\\\"my_key\\\":\\\"my_val\\\"}\",\n        \"processed\": true,\n        \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\",\n        \"preview_icons\": [\n            \"https://play.seenkit.com/presentation/123456789123456789123456789123456789abcd-1622112380559/presentation/bd45da989a30d206797c229a26c0d101d096dd8b-1622112380602/thumbnails/thumb-1.png\"\n        ],\n        \"duration\": \"00:09\",\n        \"slides\": \"1\",\n        \"embed_link\": \"https://play.seenkit.com/p/?lid=2609&mid=7a66f38beafdc6978e0e519a480ef7ba91e3f727-1622112380559\"\n    },\n    {\n        \"description\": \"This is my second unit \",\n        \"title\": \"My second unit\",\n        \"date\": \"2020-06-01T12:00:01+00:00\",\n        \"external_data\": \"{\\\"my_key\\\":\\\"my_val\\\"}\",\n        \"processed\": true,\n        \"internal_id\": \"123456789123456789123456789123456789abcd-1591012809999\",\n        \"preview_icons\": [\n            \"https://play.seenkit.com/presentation/123456789123456789123456789123456789abcd-1591012809999/presentation/f1e5ff0d9265a7e749a3c21e3c39f33a8268a52d-1591012801121/thumbnails/thumb-1.png\",\n            \"https://play.seenkit.com/presentation/123456789123456789123456789123456789abcd-1591012809999/presentation/f1e5ff0d9265a7e749a3c21e3c39f33a8268a52d-1591012801121/thumbnails/thumb-2.png\",\n            \"https://play.seenkit.com/presentation/123456789123456789123456789123456789abcd-1591012809999/presentation/f1e5ff0d9265a7e749a3c21e3c39f33a8268a52d-1591012801121/thumbnails/thumb-3.png\"\n        ],\n        \"duration\": \"21:54\",\n        \"slides\": \"24\",\n        \"embed_link\": \"https://play.seenkit.com/p/?lid=2541&mid=123456789123456789123456789123456789abcd-1591012809999\"\n    }\n]"}],"_postman_id":"c0c719de-72f8-474f-9662-6190ddf49ac6"},{"name":"Unit details","event":[{"listen":"prerequest","script":{"id":"460d4ad4-76d0-4c03-9b1e-4327fdfeac94","exec":[""],"type":"text/javascript"}}],"id":"79d47922-47bc-4dc2-a4ab-78cd9c2f5382","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://api.seenkit.com/api/units/{{unit_int_id}}","description":"<p>Returns the details of the unit identified by {{unit_int_id}}.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"ad156a00-baf0-42d8-ab16-af0122690dc5","name":"Unit details","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 27 May 2021 16:43:13 GMT"},{"key":"Server","value":"Apache"},{"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":"966"},{"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    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\",\n    \"processed\": true,\n    \"description\": \"This is my first unit\",\n    \"title\": \"My first unit\",\n    \"date\": \"2021-05-27T10:46:20+00:00\",\n    \"external_data\": \"{\\\"my_key\\\":\\\"my_val\\\"}\",\n    \"type\": \"A\",\n    \"preview_icons\": [\n        \"https://play.seenkit.com/presentation/123456789123456789123456789123456789abcd-1622112380559/presentation/bd45da989a30d206797c229a26c0d101d096dd8b-1622112380602/thumbnails/thumb-1.png\"\n    ],\n    \"duration\": \"02:09\",\n    \"slides\": \"5\",\n    \"embed_link\": \"https://play.seenkit.com/p/?lid=2609&mid=123456789123456789123456789123456789abcd-1622112380559\",\n    \"link\": \"https://play.seenkit.com/p/l.php?l=vPpuuPJCpXIFZKVm1jWauWzoYe8GZBJM\",\n    \"domains\": [\n        {\n            \"domain\": \"seenkit.com\",\n            \"id\": 1652\n        },\n        {\n            \"domain\": \"abacotechnology.com\",\n            \"id\": 1653\n        }\n    ],\n    \"lesson_props\": {\n        \"show_drawings\": \"Y\",\n        \"show_cursor\": \"Y\",\n        \"show_speaker_picture\": \"N\",\n        \"show_speaker_name\": \"N\",\n        \"speaker_name\": \"\",\n        \"show_video\": \"N\",\n        \"show_date\": \"Y\"\n    },\n    \"lesson_socials\": {\n        \"Facebook\": \"N\",\n        \"Twitter\": \"Y\",\n        \"Linkedin\": \"N\"\n    }\n}"}],"_postman_id":"79d47922-47bc-4dc2-a4ab-78cd9c2f5382"},{"name":"Create unit","event":[{"listen":"prerequest","script":{"id":"9aa8daf4-7c7c-403b-b796-db3ca699bfe2","exec":[""],"type":"text/javascript"}}],"id":"087d2559-bb02-45d9-bc6d-5081c53c7023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"allow_url","value":"","type":"text","description":"<p>String max 255 characters</p>\n"},{"key":"title","value":"","type":"text","description":"<p>String min 4, max 255 characters</p>\n"},{"key":"description","value":"","type":"text","description":"<p>String max 255 characters</p>\n"},{"key":"logout_url","value":"","type":"text","description":"<p>String max 255 characters</p>\n"},{"key":"extra_info","value":"","description":"<p>Json string max 255 characters</p>\n","type":"text"},{"key":"pres_file","value":"","description":"<p>String max 255 characters</p>\n","type":"text"}]},"url":"https://api.seenkit.com/api/units","description":"<p>This call returns a token to be used as a GET parameter in the next http redirect to <a href=\"https://api.seenkit.com/api/record_api\">https://api.seenkit.com/api/record_api</a></p>\n<p>This is the correct process to record a new unit:</p>\n<ol>\n<li><p>Make the call with the right POST fields (title, description, presentation file url, logout url etc.) as specified in this documentation.</p>\n</li>\n<li><p>Grab the \"apiToken1\" from the response.</p>\n</li>\n<li><p>Create the \"apiToken2\" using the sha1 cryptographic hash function with argument \"apiToken1\" + \"seenkit API secret key\".</p>\n</li>\n<li><p>Redirect the browser to <a href=\"https://api.seenkit.com/api/record_api?t1=%5BapiToken1%5D&amp;t2=%5BapiToken2%5D\">https://api.seenkit.com/api/record_api?t1=[apiToken1]&amp;t2=[apiToken2]</a></p>\n</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","units"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"d432d37b-828d-417f-b7eb-6361d8bcf014","name":"Create unit","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"display_name","value":"Your Name","type":"text"},{"key":"allow_url","value":"www.seenkit.com","type":"text"},{"key":"title","value":"Test unit","type":"text"},{"key":"description","value":"Unit description","type":"text"},{"key":"logout_url","value":"www.mywebsite.com/list-recordings.html","type":"text"}]},"url":"{{api_host}}/api/units"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 31 May 2021 10:41:15 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"SNKTAPI=e66f3sn3n0onao5j5iov069aqo; path=/; domain=.seenkit.com; secure; HttpOnly"},{"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":"80"},{"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    \"apiToken1\": \"fRUbHDjgkxW2OY9PXHI2pfY9sXOZIhPdBDUDtANIozPQv8uj6Z9ertrmMdcrBqZV\"\n}"}],"_postman_id":"087d2559-bb02-45d9-bc6d-5081c53c7023"},{"name":"Update unit","event":[{"listen":"prerequest","script":{"id":"40eab8e0-36bd-4045-b0a8-96340284ff44","exec":[""],"type":"text/javascript"}}],"id":"7e3e8d4b-b5fa-41c8-8189-86013d25161f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"","description":"<p>String min 4, max 255 characters</p>\n","type":"text"},{"key":"description","value":"","description":"<p>String max 255 characters</p>\n","type":"text"},{"key":"show_drawings","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_cursor","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_speaker_picture","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_speaker_name","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"speaker_name","value":"","description":"<p>String max 128 characters</p>\n","type":"text","disabled":true},{"key":"show_video","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_date","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"extra_info","value":"","description":"<p>Json string max 255 characters</p>\n","type":"text","disabled":true}]},"url":"https://api.seenkit.com/api/units/{{unit_int_id}}","description":"<p>Updates the unit identified by {{unit_int_id}}.\nAll fields are optional, only submitted fields will be updated.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"cb68292a-6748-4afb-ae42-509559149c3f","name":"Update unit","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"The new title","description":"String min 4, max 255 characters","type":"text"},{"key":"description","value":"","description":"String max 255 characters","type":"text"},{"key":"show_drawings","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_cursor","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_speaker_picture","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_speaker_name","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"speaker_name","value":"","description":"String max 128 characters","type":"text","disabled":true},{"key":"show_video","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_date","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"extra_info","value":"","description":"Json string max 255 characters","type":"text","disabled":true}]},"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 13:03:41 GMT"},{"key":"Server","value":"Apache"},{"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":"83"},{"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    \"res\": \"ok\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\"\n}"}],"_postman_id":"7e3e8d4b-b5fa-41c8-8189-86013d25161f"},{"name":"Sync audio","event":[{"listen":"prerequest","script":{"id":"40eab8e0-36bd-4045-b0a8-96340284ff44","exec":[""],"type":"text/javascript"}}],"id":"b3775910-8c25-480f-9fa9-e0c838a3122a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"","description":"<p>String min 4, max 255 characters</p>\n","type":"text"},{"key":"description","value":"","description":"<p>String max 255 characters</p>\n","type":"text"},{"key":"show_drawings","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_cursor","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_speaker_picture","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_speaker_name","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"speaker_name","value":"","description":"<p>String max 128 characters</p>\n","type":"text","disabled":true},{"key":"show_video","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"show_date","value":"","description":"<p>String \"Y\" / \"N\"</p>\n","type":"text","disabled":true},{"key":"extra_info","value":"","description":"<p>Json string max 255 characters</p>\n","type":"text","disabled":true}]},"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/sync/1.55","description":"<p>Updates the unit identified by {{unit_int_id}}.\nAll fields are optional, only submitted fields will be updated.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","sync","1.55"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"c848cdc3-6f39-45a6-b158-4dff0c107d72","name":"Update unit","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"The new title","description":"String min 4, max 255 characters","type":"text"},{"key":"description","value":"","description":"String max 255 characters","type":"text"},{"key":"show_drawings","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_cursor","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_speaker_picture","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_speaker_name","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"speaker_name","value":"","description":"String max 128 characters","type":"text","disabled":true},{"key":"show_video","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"show_date","value":"","description":"String \"Y\" / \"N\"","type":"text","disabled":true},{"key":"extra_info","value":"","description":"Json string max 255 characters","type":"text","disabled":true}]},"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 13:03:41 GMT"},{"key":"Server","value":"Apache"},{"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":"83"},{"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    \"res\": \"ok\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\"\n}"}],"_postman_id":"b3775910-8c25-480f-9fa9-e0c838a3122a"},{"name":"Delete unit","event":[{"listen":"prerequest","script":{"id":"97a04fae-4f9f-4a21-a823-f1f94ed1c58f","exec":[""],"type":"text/javascript"}}],"id":"926f3482-4e92-48f3-82ab-7e272654fb1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}","description":"<p>This request deletes a unit. This action cannot be undone.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"7cc0a1ab-1081-405c-92b5-6f3f287f3c06","name":"Delete unit","originalRequest":{"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1617894742433"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 13:12:39 GMT"},{"key":"Server","value":"Apache"},{"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":"83"},{"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    \"res\": \"ok\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1617894742433\"\n}"}],"_postman_id":"926f3482-4e92-48f3-82ab-7e272654fb1e"},{"name":"Units domains","event":[{"listen":"prerequest","script":{"id":"028b7cbd-eae3-429e-a0e2-1e7a8dee6e6c","exec":[""],"type":"text/javascript"}}],"id":"3f2cee86-c631-4622-89d4-2d7d7f25c212","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/domains","description":"<p>Returns the allowed domains for the specified unit. The embedding code of this unit will work if published on web pages of these domains only.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","domains"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"30726b95-e04e-4f29-aba0-c39a120da2d6","name":"Units domains","originalRequest":{"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 28 May 2021 09:31:41 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"SNKTAPI=8c1cctfbjm6722f4uj7chacl90; path=/; domain=.seenkit.com; secure; HttpOnly"},{"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":"171"},{"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    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\",\n    \"domains\": [\n        {\n            \"domain\": \"abacotechnology.com\",\n            \"domain_id\": 1652\n        },\n        {\n            \"domain\": \"seenkit.com\",\n            \"domain_id\": 1653\n        }\n    ]\n}"}],"_postman_id":"3f2cee86-c631-4622-89d4-2d7d7f25c212"},{"name":"Add domain","event":[{"listen":"prerequest","script":{"id":"3599220d-55e5-480c-9b68-344427fe09c3","exec":[""],"type":"text/javascript"}}],"id":"c783bd00-034f-4bd6-a4e7-778b13d73f36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"domain","value":"","description":"<p>String max 255 chars. The name of the domain you want to authorize the embedding for.</p>\n","type":"text"}]},"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/domains","description":"<p>Adds a domain to the list of allowed domains for a unit.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","domains"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"8fa56d1b-316f-49da-86bb-28759a844e97","name":"Add domain","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"domain","value":"abacotechnology.com","description":"String max 255 chars. The name of the domani you want to authorize the embedding for.","type":"text"}]},"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/domains"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Jun 2021 13:24:48 GMT"},{"key":"Server","value":"Apache"},{"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":"113"},{"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    \"res\": \"ok\",\n    \"domain\": \"abacotechnology.com\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\"\n}"}],"_postman_id":"c783bd00-034f-4bd6-a4e7-778b13d73f36"},{"name":"Delete domain","event":[{"listen":"prerequest","script":{"id":"88a85971-1d00-4a02-922d-42add6053bad","exec":[""],"type":"text/javascript"}}],"id":"6a80219d-fb02-4dea-9922-b44006132224","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/domains/{{domain_id}}","description":"<p>This action deletes a domain from the list of allowed domain for a unit.\nYou can get the {{domain_id}} of the domain to delete using the GET Unit domains action.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","domains","{{domain_id}}"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"6841b83d-b7d6-44e9-9082-b5634467cd82","name":"Delete domain","originalRequest":{"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/domains/1653"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 13:53:50 GMT"},{"key":"Server","value":"Apache"},{"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":"102"},{"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    \"res\": \"ok\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\",\n    \"domain_id\": \"1653\"\n}"}],"_postman_id":"6a80219d-fb02-4dea-9922-b44006132224"},{"name":"Unit socials","event":[{"listen":"prerequest","script":{"id":"442071e0-fb78-4c30-bbd6-930eb7852d03","exec":[""],"type":"text/javascript"}}],"id":"fa44152d-2abe-437a-8ece-13d86fcdd77e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/socials","description":"<p>Returns the allowed social networks the specified unit can be shared on.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","socials"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"206395df-f9f7-42fe-ada3-ff570747585d","name":"Unit socials","originalRequest":{"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/socials"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Jun 2021 13:31:44 GMT"},{"key":"Server","value":"Apache"},{"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":"133"},{"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    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\",\n    \"unit_socials\": {\n        \"Facebook\": \"N\",\n        \"Twitter\": \"Y\",\n        \"Linkedin\": \"N\"\n    }\n}"}],"_postman_id":"fa44152d-2abe-437a-8ece-13d86fcdd77e"},{"name":"Add social","event":[{"listen":"prerequest","script":{"id":"fd988cd8-9008-474e-ba0e-47d2868b3d70","exec":[""],"type":"text/javascript"}}],"id":"9441c07e-cca7-4dbf-80b2-c1fc0a592d4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Int, the social networks to authorize. Facebook = 1; Twitter = 2; Linkedin = 3</p>\n","key":"social","type":"text","value":""}]},"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/socials","description":"<p>Adds a social network to the list of allowed social networks for the specified unit.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","socials"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"30093939-c829-490a-a114-d112d5ac008d","name":"Add social","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"social","type":"text","value":"3"}]},"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/socials"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Jun 2021 13:51:37 GMT"},{"key":"Server","value":"Apache"},{"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":"96"},{"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    \"res\": \"ok\",\n    \"social\": \"3\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\"\n}"}],"_postman_id":"9441c07e-cca7-4dbf-80b2-c1fc0a592d4e"},{"name":"Delete social","event":[{"listen":"prerequest","script":{"id":"e63628aa-13e4-448a-b900-b01fd1d02a13","exec":[""],"type":"text/javascript"}}],"id":"d330d113-234c-4eae-8b4e-1b1f799af8e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/socials/3","description":"<p>This action deletes a social network from the list of allowed social networks for the specified unit.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","socials","3"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"036c9418-dd4d-4139-a119-fdc5c7d5fc72","name":"Delete social","originalRequest":{"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/socials/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 14:00:58 GMT"},{"key":"Server","value":"Apache"},{"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":"99"},{"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    \"res\": \"ok\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\",\n    \"social_id\": \"3\"\n}"}],"_postman_id":"d330d113-234c-4eae-8b4e-1b1f799af8e6"},{"name":"Delete link","event":[{"listen":"prerequest","script":{"id":"4b42da1b-eb33-446d-a1ba-961665562baa","exec":[""],"type":"text/javascript"}}],"id":"4ce1998e-2ce8-41e6-85e8-d2e77b5efe03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/link","description":"<p>Used to delete the public link for the specified unit. If the link was shared  with other people, it will stop working.\nYou can get a new link using GET Unit link.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","link"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"6d05ea97-5f29-45d3-b5b3-f0ab86ec6c72","name":"Delete link","originalRequest":{"method":"DELETE","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/link"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 10 Jun 2021 14:07:24 GMT"},{"key":"Server","value":"Apache"},{"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":"83"},{"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    \"res\": \"ok\",\n    \"internal_id\": \"123456789123456789123456789123456789abcd-1622112380559\"\n}"}],"_postman_id":"4ce1998e-2ce8-41e6-85e8-d2e77b5efe03"},{"name":"Unit link","event":[{"listen":"prerequest","script":{"id":"d27835f2-1ab4-4f48-8bd2-d2d39c565e19","exec":[""],"type":"text/javascript"}}],"id":"2433b2d9-5526-43e6-a08f-84ff24a0715e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt_signed}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/{{unit_int_id}}/link","description":"<p>Returns the public link for the specified unit.\nIf an active link already exists, it will be returned; if there is no link, a new one will be created and returned.</p>\n","urlObject":{"protocol":"https","path":["api","units","{{unit_int_id}}","link"],"host":["api","seenkit","com"],"query":[],"variable":[]}},"response":[{"id":"37d24ceb-e95a-4c70-97b1-87e68fbe04b7","name":"Unit link","originalRequest":{"method":"GET","header":[],"url":"https://api.seenkit.com/api/units/123456789123456789123456789123456789abcd-1622112380559/link"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Jun 2021 14:02:19 GMT"},{"key":"Server","value":"Apache"},{"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":"82"},{"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    \"link\": \"https://play.seenkit.com/p/l.php?l=YoWQ8BrQloljRh84bmCS3TDjMxcLIBSv\"\n}"}],"_postman_id":"2433b2d9-5526-43e6-a08f-84ff24a0715e"}],"auth":{"type":"bearer","bearer":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"cdce2659-a21f-4e34-86d4-5dea55a7ca91","type":"text/javascript","exec":["// JWT generation script adapted from","// https://gist.github.com/corbanb/db03150abbe899285d6a86cc480f674d","","var jwtSecret = pm.environment.get('api_secret')","","// Set headers for JWT","var header = {","\t'typ': 'JWT',","\t'alg': 'HS256'","};","","// Prepare timestamp in seconds","var currentTimestamp = Math.floor(Date.now() / 1000)","","var data = {","\t'iss': pm.environment.get('api_key'),","\t'iat': currentTimestamp,","\t'exp': currentTimestamp + 30, // expiry time is 30 seconds from time of creation","}","","","function base64url(source) {","    // Encode in classical base64","    encodedSource = CryptoJS.enc.Base64.stringify(source)","    ","    // Remove padding equal characters","    encodedSource = encodedSource.replace(/=+$/, '')","    ","    // Replace characters according to base64url specifications","    encodedSource = encodedSource.replace(/\\+/g, '-')","    encodedSource = encodedSource.replace(/\\//g, '_')","    ","    return encodedSource","}","","// encode header","var stringifiedHeader = CryptoJS.enc.Utf8.parse(JSON.stringify(header))","var encodedHeader = base64url(stringifiedHeader)","","// encode data","var stringifiedData = CryptoJS.enc.Utf8.parse(JSON.stringify(data))","var encodedData = base64url(stringifiedData)","","// build token","var token = `${encodedHeader}.${encodedData}`","","// sign token","var signature = CryptoJS.HmacSHA256(token, jwtSecret)","signature = base64url(signature)","var signedToken = `${token}.${signature}`","","pm.environment.set('jwt_signed', signedToken)","console.log('Signed and encoded JWT', signedToken)"]}},{"listen":"test","script":{"id":"ab95ad55-3fd6-4aa9-81ff-b0c6710bff76","type":"text/javascript","exec":[""]}}]}