{"info":{"_postman_id":"8079dd45-d891-4211-b845-c4c252549307","name":"Safeolio","description":"<html><head></head><body><p>With our API for our SafeSign-module, it is possible to forward documents for signature directly from one’s private system or platform using NemID, touch-signing or by clicking the checkbox, hereby accepting the insertion of your signature. <br></p>\n<p>With our API for our SafeShare-module, it is possible to forward end-to-end encrypted messages and/or files directly to all types of e-mail accounts using one’s private system or platform.</p>\n<p><b>WEBLINKS</b><br>\nAPI Documentation: <a href=\"https://api.safeolio.dk/\">https://api.safeolio.dk/</a><br>\nTest domain: <a href=\"https://safesign.safeshare.dk\">https://safesign.safeshare.dk</a><br>\nTest API: <a href=\"https://safesign.safeshare.dk/api/v1/\">https://safesign.safeshare.dk/api/v1/</a><br></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Project</th>\n<th>Safeolio</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Version</td>\n<td>1.0.0</td>\n</tr>\n<tr>\n<td>Updated</td>\n<td>05-12-2020</td>\n</tr>\n<tr>\n<td>Author</td>\n<td>Matias Aabye (<a href=\"mailto:Matias@proteq.nu\">Matias@proteq.nu</a>)</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://proteq.nu\">https://proteq.nu</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"getting-started-with-safeshare\">Getting started with SafeShare</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>STEP</th>\n<th>ACTION</th>\n<th>CALL</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Create the transmission in one’s private system or on one’s private platform with the following information:<br>             <li>The receiver’s e-mail address,</li>             <li>The password that will be used to unlock the transmission (it is possible to either generate an automated password or to enter your own password),</li>             <li>If applicable, the phone number for the receiver, which the password can be forwarded to,</li>             <li>If applicable, document(s) that needs to be attached in the transmission,</li>             <li>If applicable, messages that should be included in the transmission.</li></td>\n<td><strong>Send a SafeShare transmission</strong></td>\n</tr>\n<tr>\n<td>2</td>\n<td>An e-mail including a unique link to the site, where the encrypted message can be unlocked, will be forwarded to the receiver.</td>\n<td></td>\n</tr>\n<tr>\n<td>3</td>\n<td>The receiver will unlock the transmission with the received password.</td>\n<td></td>\n</tr>\n<tr>\n<td>4</td>\n<td>The receiver will be sent to a unique site in SafeShare, where it is possible for the receiver to read the message and download attached document(s) if any.</td>\n<td></td>\n</tr>\n<tr>\n<td>5</td>\n<td>When the receiver has unlocked the transmission the first time, the access to the transmission will be destroyed and the receiver will no longer have access to the transmission (when the transmission is unlocked, the receiver will be informed of this).</td>\n<td></td>\n</tr>\n<tr>\n<td>6</td>\n<td>Procuring information about the transmission, including whether the transmission has been unlocked by the receiver.</td>\n<td><strong>Receiving a SafeShare transmission</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"getting-started-with-safesign\">Getting started with SafeSign</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>STEP</th>\n<th>ACTION</th>\n<th>CALL</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Create the transmission in one’s private system or on one’s private platform with the following information:<br>             <li>Signers and copy recipients if required,</li>             <li>Whether the transmission should be end-to-end encrypted. If this is the case, please note that password and – if applicable – phone number for each signer should be stated,</li>             <li>Document(s) for signature</li>             <li>The type of signature (NemID, touch or checkbox),</li>             <li>If applicable, reminders and/or notice about missing signatures,</li>             <li>The transmission’s expiration date.</li></td>\n<td><strong>Send a SafeSign transmission</strong></td>\n</tr>\n<tr>\n<td>2</td>\n<td>An e-mail will be forwarded from SafeSign to each signer, including a unique link for the site, where the transmission is to be signed (provided that the transmission is encrypted, the signers need to enter the chosen password to unlock the transmission).</td>\n<td></td>\n</tr>\n<tr>\n<td>3</td>\n<td>The transmission is encrypted in SafeSign while the signing process is ongoing.</td>\n<td></td>\n</tr>\n<tr>\n<td>4</td>\n<td>Procuring general information about all transmissions to be stored within one’s private system or procuring supplementary transmission information.  Make sure to save <strong>File_main_id</strong>, since this can be used for procuring signer status.</td>\n<td><strong>Receiving a SafeSign transmission</strong></td>\n</tr>\n<tr>\n<td>5</td>\n<td>Procuring information regarding the persons signing the transmission, and those who have refused signing the transmission to one’s private system.   Use <strong>File_main_id</strong> from step 4.</td>\n<td><strong>Receive signer status</strong></td>\n</tr>\n<tr>\n<td>6</td>\n<td>When the transmission has been signed by all parties/signers, the signed document(s) is/are being stored in SafeSign. Simultaneously, an e-mail containing the signed document(s) are being forwarded to all signers and/or copy recipients (provided that the transmission is encrypted, the link for unlocking the transmission will be forwarded. Afterwards, the transmission can be accessed with the initial, received password for the transmission).</td>\n<td></td>\n</tr>\n<tr>\n<td>7</td>\n<td>Procuring the signed file from SafeSign to one’s private system.  This will be returned as base64_encoded variable, for which you can chose to save the document or chose to create a download button for the users internally.</td>\n<td><strong>Receive the signed document/file</strong></td>\n</tr>\n<tr>\n<td>8</td>\n<td>Deleting the transmission from SafeSign when the signed document is stored within one’s private system.  Please note that the transmission in SafeSign will be deleted after 30 days of finalizing the signing process.</td>\n<td><strong>Receiving a SafeSign transmission</strong></td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting started with SafeShare","slug":"getting-started-with-safeshare"},{"content":"Getting started with SafeSign","slug":"getting-started-with-safesign"}],"owner":"9775097","collectionId":"8079dd45-d891-4211-b845-c4c252549307","publishedId":"TVCfVnnL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4669B2"},"publishDate":"2020-12-10T19:15:11.000Z"},"item":[{"name":"Authentication","item":[{"name":"Check user auth","id":"5ad25004-2c70-4488-b59f-e1210f6cd519","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://safesign.safeshare.dk/api/v1/UserAuth","description":"<p>Used to check the users’ log-in information.\n<br /><br />\nWe recommend only using this call to check the users’ log-in information. Additional calls are authenticated with every request. </p>\n","urlObject":{"protocol":"https","path":["api","v1","UserAuth"],"host":["safesign","safeshare","dk"],"query":[],"variable":[]}},"response":[{"id":"74ea0398-a2c0-4dcc-800e-fc7e7748dfbc","name":"Bad Request","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic base64_encode(\"test@123.com:password\")","type":"text","disabled":true}],"url":"https://safesign.safeshare.dk/api/v1/UserAuth"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:52:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"400\",\n    \"status\": \"error\",\n    \"error_message\": \"Bad Request\",\n    \"details\": \"one or more parameters are missing\"\n}"},{"id":"fcd9b0f0-ab2d-45da-9613-63b626baceb5","name":"Authorized","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic base64_encode(\"test@123.com:password\")","type":"text","disabled":true}],"url":"https://safesign.safeshare.dk/api/v1/UserAuth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:51:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"success_message\": \"Authorized\"\n}"},{"id":"fdb498cb-eb34-47ee-b231-8c47214f81a4","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic base64_encode(\"test@123.com:password\")","type":"text","disabled":true}],"url":"https://safesign.safeshare.dk/api/v1/UserAuth"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:52:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"401\",\n    \"status\": \"error\",\n    \"error_message\": \"Unauthorized\",\n    \"details\": \"Wrong credentials\"\n}"}],"_postman_id":"5ad25004-2c70-4488-b59f-e1210f6cd519"}],"id":"6ba4a5d2-eb28-474d-beeb-99ba827f9bf9","description":"<p>With all API calls, Basic Authentication is used for the purpose of gaining the users’ approval.<br />\nAll requests need to include “Authorization” in the call.<br />\nThe user’s e-mail account is used as the username. Additionally, the user’s password for the account needs to be stated.<br /><br />\nPlease note that the password needs to be <b>MD5 encoded.</b><br />\nWe recommend the users’ e-mail account (username) and password is stored in the user’s own database. We also recommend using “check user auth” the first time the user is logged on in order to check log-in information.</p>\n","_postman_id":"6ba4a5d2-eb28-474d-beeb-99ba827f9bf9"},{"name":"SafeShare","item":[{"name":"Send a SafeShare transmission","id":"14e67c37-3bd2-45e3-af36-7e5f849dfb0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>Receiver’s email</p>\n","key":"email","type":"text","value":""},{"description":"<p>Code for opening the message</p>\n","key":"security_code","type":"text","value":""},{"description":"<p>Write the message for the receiver</p>\n","key":"message","type":"text","value":""},{"description":"<p>Include files as attachments if you wish to send files</p>\n","key":"filet[]","type":"file","value":null,"disabled":true},{"description":"<p>Fill out if you wish to send a text message </p>\n","key":"RecPhone","type":"text","value":"","disabled":true},{"description":"<p>Email or Link (Email = Mail being sent from SafeShare) </p>\n","key":"sending_type","type":"text","value":"","disabled":true},{"description":"<p>External ID  (*)</p>\n","key":"sj_uid","type":"text","value":""}]},"url":"https://safesign.safeshare.dk/api/v1/sendMessageSafe","description":"<p>This POST request is being used when creating a transmission that is being forwarded through SafeShare.<br /><br />\n<strong>email</strong> – this section is for writing the receiver’s email address. <br />\n<strong>security_code</strong> – write the code, the receiver will be given to open the forwarded message**.<br />\n<strong>message</strong> – write the message, the receiver will be getting.<br />\n<strong>filet[]</strong> – this section should only be filled out if you need to include files as attachments. Otherwise, the message will simply be sent.<br />\n<strong>RecPhone</strong> – this section should only be filled out if a text message is to be send. <br />\n<strong>sending_type</strong> – this section includes the email (SafeShare) or link that the message is sent from. If field is \"Mail\", a mail is sent. <br />\n<strong>sj_uid</strong> – this section shows the identifier’s information for future transmissions.</p>\n","urlObject":{"protocol":"https","path":["api","v1","sendMessageSafe"],"host":["safesign","safeshare","dk"],"query":[],"variable":[]}},"response":[{"id":"83d6b2b5-0f14-440b-9194-a570a1f0dabf","name":"401 - Uauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"multipart/form-data"},{"key":"authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1hdGlhc0BwZG8tZ3JvdXAuZGsifQ.z9fgZvpAgViTveXG4ffmjbKYlwyp3DUhABVhNSqH2eA","warning":"This is a duplicate header and will be overridden by the authorization header generated by Postman.","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"email","type":"text","value":"matias@pdo-group.dk"},{"key":"security_code","type":"text","value":"1234"},{"key":"message","type":"text","value":"Dette er en besked"},{"description":"Only fill out, if there is to be send a phone message","key":"RecPhone","type":"text","value":"31535496"},{"key":"filet[]","type":"file","value":null}]},"url":{"raw":"https://safesign.safeshare.dk/api/v1/sendMessageSafe","protocol":"https","host":["safesign","safeshare","dk"],"path":["api","v1","sendMessageSafe"],"query":[{"key":"email","value":"matias@pdo-group.dk","disabled":true},{"key":"security_code","value":"321","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Thu, 03 Sep 2020 06:00:02 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.4"},{"key":"X-Powered-By","value":"PHP/7.4.4"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":null},{"id":"922ffd0a-6351-4d91-a8f0-8d0354a78fb7","name":"200 - Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"multipart/form-data"},{"key":"authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1hdGlhc0BwZG8tZ3JvdXAuZGsifQ.z9fgZvpAgViTveXG4ffmjbKYlwyp3DUhABVhNSqH2eA","warning":"This is a duplicate header and will be overridden by the authorization header generated by Postman.","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"email","type":"text","value":"matias@proteq.nu"},{"key":"security_code","type":"text","value":"1234"},{"key":"message","type":"text","value":"Dette er en besked"},{"description":"Only fill out, if there is to be send a phone message","key":"RecPhone","type":"text","value":"31535496"},{"description":"File uploader","key":"filet[]","type":"file","value":null}]},"url":{"raw":"https://safesign.safeshare.dk/api/v1/sendMessageSafe","protocol":"https","host":["safesign","safeshare","dk"],"path":["api","v1","sendMessageSafe"],"query":[{"key":"email","value":"matias@pdo-group.dk","disabled":true},{"key":"security_code","value":"321","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Sep 2020 05:58:47 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.4"},{"key":"X-Powered-By","value":"PHP/7.4.4"},{"key":"Set-Cookie","value":"ci_session=b0hujv7fkb0lejins8v3v1p53v2oqd5n; path=/; 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":"WWW-Authenticate","value":"Basic realm=\"REST API\""},{"key":"Content-Length","value":"201"},{"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    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"success_message\": \"Message Added\",\n    \"url\": \"\",\n    \"userId\": null,\n    \"ID\": 9647,\n    \"fileID\": \"NDU=\"\n}"}],"_postman_id":"14e67c37-3bd2-45e3-af36-7e5f849dfb0e"},{"name":"Receiving a SafeShare transmission","id":"a30a7290-27c9-4307-a0dd-6ffd6b6f9ae9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://safesign.safeshare.dk/api/v1/GetMessages?sent_id=&type=detail","description":"<p>The GET request is used for retrieving information about a transmission, including whether the transmission has been unlocked by the receiver.\n<br /><br />\nThis should be used in two different ways:</p>\n<ol>\n<li>When receiving all SafeShare transmissions:<br />\n<strong>sent_id</strong> = The unique identifier (UID) that reveals the record as unique compared to other records.<br />\n<strong>type</strong> = SafeShare. This section should be filled out if you wish to return all current SafeShare transfers in a row.<br /><br /></li>\n<li>When receiving detail information about a transfer:<br />\n<strong>sent_id</strong> = Should be file_main_id. See the before-mentioned function.<br />\n<strong>type</strong> = detail. This regards detail information about the transfer in question.</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","GetMessages"],"host":["safesign","safeshare","dk"],"query":[{"description":{"content":"<p>Unique identifier (UID)</p>\n","type":"text/plain"},"key":"sent_id","value":""},{"description":{"content":"<p>detail = Detail.</p>\n","type":"text/plain"},"key":"type","value":"detail"}],"variable":[]}},"response":[{"id":"01881906-e063-4c63-909f-1622d83798a9","name":"Example response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://safesign.safeshare.dk/api/v1/GetMessages?sent_id=1&type=detail","protocol":"https","host":["safesign","safeshare","dk"],"path":["api","v1","GetMessages"],"query":[{"key":"sent_id","value":"1","description":"File main id to get info"},{"key":"type","value":"detail","description":"detail = Detail.\nfiles = files"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 17:01:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"data\": {\n        \"file_main_id\": \"1\",\n        \"status\": \"Not Open\",\n        \"add_date\": \"1599234978\",\n        \"code_sent_time\": \"1599234978\",\n        \"opentime\": \"0000-00-00 00:00:00\",\n        \"SenderID\": \"6259\",\n        \"if_personal\": \"0\",\n        \"remind_days\": \"2\",\n        \"amount_per_mail\": \"0\",\n        \"shipment_title\": \"Titel tiel\",\n        \"sign_type\": \"dialog\",\n        \"sj_uid\": \"300\"\n    }\n}"}],"_postman_id":"a30a7290-27c9-4307-a0dd-6ffd6b6f9ae9"}],"id":"3a060215-a61a-4e09-a8ee-c0ce5831509d","description":"<p>With our API for our SafeShare-module, it is possible to forward end-to-end encrypted messages and/or files directly to all types of e-mail accounts using one’s private system or platform.</p>\n","_postman_id":"3a060215-a61a-4e09-a8ee-c0ce5831509d"},{"name":"SafeSign","item":[{"name":"Send a SafeSign transmission","id":"78504174-c52c-4206-a551-557060e24e4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"multipart/form-data","warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman."}],"body":{"mode":"formdata","formdata":[{"description":"<p>Fill out if you wish to secure the message with a code</p>\n","key":"security_code","type":"text","value":"","disabled":true},{"description":"<p>Write the message for the receiver (*)</p>\n","key":"message","type":"text","value":""},{"description":"<p>Include files for signing as attachments (*)</p>\n","key":"file[]","type":"file","value":null},{"description":"<p>Include a text message for each signer (Yes / empty)</p>\n","key":"send_pass","type":"text","value":"","disabled":true},{"description":"<p>Remind_days (*)</p>\n","key":"intervals","type":"text","value":""},{"description":"<p>Include the title for the shipment (*)</p>\n","key":"shipment_title","type":"text","value":""},{"description":"<p>Signature through touch, nemid or dialog (*)</p>\n","key":"sign_type","type":"text","value":""},{"description":"<p>External ID</p>\n","key":"sj_uid","type":"text","value":""},{"description":"<p>Can be used to send your own HTML formatted text to replace text in mail. If you do not include any text in this section, the default message is being used.</p>\n","key":"message_lst","type":"text","value":"","disabled":true},{"description":"<p>Write signers in json format ex: [{\"name\":\"Matias Aabye\",\"email\":\"<a href=\"mailto:matias@proteq.nu\">matias@proteq.nu</a>\",\"tel\":\"31535496\"}]</p>\n","key":"signer_person","type":"text","value":""},{"description":"<p>The number of signers</p>\n","key":"signers","type":"text","value":""},{"description":"<p>The name of the company or person that is included in the default message</p>\n","key":"company_name","type":"text","value":"","disabled":true},{"description":"<p>Enter date in the following format: yyyy-dd-mm</p>\n","key":"expiredate","type":"text","value":""}]},"url":"https://safesign.safeshare.dk/api/v1/SendMessageSafeSign","description":"<p>This POST request is being used when creating a transmission that is being forwarded for signature through SafeSign and are being forwarded to the signers.\n<br /><br />The default mails in this procedure is:<br /></p>\n<ol>\n<li>Mail sent to signers for signature.<br /></li>\n<li>When the document has been signed.<br />\n2.1) Mail sent to signers including the attached document(s), which is either protected by locking the document via a link or by an attachment in the mail. <br />\n2.2) The sender receives a confirmation email when all signers have signed the document(s).<br /><br />\nParameters:<br />\n<strong>security_code</strong> – This should be filled out if the message and/or attachments are confidential. <br />\n<strong>send_pass</strong> – This determines whether a text message is being sent to the signers. Please note that for this to function properly, the security_code and phone number belonging to each signer should be filled out.<br /></li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","SendMessageSafeSign"],"host":["safesign","safeshare","dk"],"query":[],"variable":[]}},"response":[{"id":"a9cf3907-9483-4e24-93e8-44f4506c230f","name":"Success - Sign added","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","name":"Content-Type","type":"text","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"description":"To lock with code, then fill out this with a code. ","key":"security_code","type":"text","value":"1234"},{"description":"Message for receiver (*) ","key":"message","type":"text","value":"Dette er en besked"},{"description":"File uploader (*)","key":"file","type":"file","value":null},{"key":"expiredate","value":"2020-10-24 22:56","description":"format: yyyy-mm-dd hh:mm","type":"text"},{"key":"send_pass","value":"yes","description":"Send by textmessage (Yes / empty) ","type":"text","disabled":true},{"key":"intervals","value":"2","description":"Remind_days (*)\n","type":"text"},{"key":"shipment_title","value":"Titel tiel","description":"Titel for the shipment (*)","type":"text"},{"key":"sign_type","value":"dialog","description":"Type: touch,nemid,dialog (*)\n","type":"text"},{"key":"sj_uid","value":"300","description":"External ID to retrieve again","type":"text"},{"key":"message_lst","value":"Test","description":"can be used to send your own html formattede text to replace text in mail\n","type":"text","disabled":true},{"key":"signer_person","value":"[{\"name\":\"Matias Aabye1\",\"email\":\"matias@proteq.nu\",\"tel\":\"31535496\"},{\"name\":\"Matias Aabye2\",\"email\":\"kontakt@proteq.nu\",\"tel\":\"31535496\"}]","description":"Write signers in json format","type":"text"},{"key":"signers","value":"2","description":"Number of signers ","type":"text"},{"key":"company_name","value":"Virksomheds navn","description":"Company or person name to insert in default mail","type":"text"}]},"url":"https://safesign.safeshare.dk/api/v1/SendMessageSafeSign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:54:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""},{"key":"Set-Cookie","value":"ci_session=3p0jmsbp56387hkhl0vqmqfodcke3aic; path=/; HttpOnly"}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"success_message\": \"Sign Added\",\n    \"Cost\": \"100 DKK (Not dynamic yet)\"\n}"},{"id":"bce48db7-329d-4f9f-9ad0-9216d5cdaf72","name":"Missing parameters","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","name":"Content-Type","type":"text","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"description":"To lock with code, then fill out this with a code. ","key":"security_code","type":"text","value":"","disabled":true},{"description":"Message for receiver (*) ","key":"message","type":"text","value":"","disabled":true},{"description":"File uploader (*)","key":"file","type":"file","value":null,"disabled":true},{"key":"send_pass","value":"","description":"Send by textmessage (Yes / empty) ","type":"text","disabled":true},{"key":"intervals","value":"","description":"Remind_days (*)\n","type":"text","disabled":true},{"key":"shipment_title","value":"","description":"Titel for the shipment (*)","type":"text","disabled":true},{"key":"sign_type","value":"","description":"Type: touch,nemid,dialog (*)\n","type":"text","disabled":true},{"key":"sj_uid","value":"","description":"External ID if needed","type":"text","disabled":true},{"key":"message_lst","value":"","description":"can be used to send your own html formattede text to replace text in mail\n","type":"text","disabled":true},{"key":"signer_person","value":"","description":"Write signers in json format\nex: [{\"name\":\"Matias Aabye\",\"email\":\"matias@proteq.nu\",\"tel\":\"31535496\"}]","type":"text","disabled":true},{"key":"signers","value":"","description":"Number of signers ","type":"text","disabled":true},{"key":"company_name","value":"","description":"Company or person name to insert in default mail","type":"text","disabled":true}]},"url":"https://safesign.safeshare.dk/api/v1/SendMessageSafeSign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:57:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"501\",\n    \"status\": \"error\",\n    \"error_message\": \"The sign was not addded. Please contact the administrator\",\n    \"errors\": null\n}"},{"id":"e114d189-2357-4865-ab03-3e8a81aaa9be","name":"Missing file","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","name":"Content-Type","type":"text","value":"multipart/form-data"}],"body":{"mode":"formdata","formdata":[{"description":"To lock with code, then fill out this with a code. ","key":"security_code","type":"text","value":"1234","disabled":true},{"description":"Message for receiver (*) ","key":"message","type":"text","value":"Dette er en besked","disabled":true},{"description":"File uploader (*)","key":"file","type":"file","src":"/C:/Users/mlaj2/Downloads/M.holding_Bankudskrift.pdf","disabled":true},{"key":"expiredate","value":"2020-10-24 22:56","description":"format: yyyy-mm-dd hh:mm","type":"text","disabled":true},{"key":"send_pass","value":"yes","description":"Send by textmessage (Yes / empty) ","type":"text","disabled":true},{"key":"intervals","value":"2","description":"Remind_days (*)\n","type":"text","disabled":true},{"key":"shipment_title","value":"Titel tiel","description":"Titel for the shipment (*)","type":"text","disabled":true},{"key":"sign_type","value":"dialog","description":"Type: touch,nemid,dialog (*)\n","type":"text","disabled":true},{"key":"sj_uid","value":"300","description":"External ID to retrieve again","type":"text","disabled":true},{"key":"message_lst","value":"Test","description":"can be used to send your own html formattede text to replace text in mail\n","type":"text","disabled":true},{"key":"signer_person","value":"[{\"name\":\"Matiasssss leder\",\"email\":\"matias@proteq.nu\",\"tel\":\"31535496\"},{\"name\":\"Matias Aabye\",\"email\":\"mlaj@outlook.com\",\"tel\":\"\"}]","description":"Write signers in json format","type":"text","disabled":true},{"key":"signers","value":"2","description":"Number of signers ","type":"text","disabled":true},{"key":"company_name","value":"Virksomheds navn","description":"Company or person name to insert in default mail","type":"text","disabled":true}]},"url":"https://safesign.safeshare.dk/api/v1/SendMessageSafeSign"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:55:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"400\",\n    \"status\": \"error\",\n    \"error_message\": \"Missing file\",\n    \"details\": \"Please attach file\"\n}"}],"_postman_id":"78504174-c52c-4206-a551-557060e24e4c"},{"name":"Transfer functions","id":"7be53873-645c-4f4f-8130-e868e0d2a3a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>main_file_id</p>\n","key":"main_file_id","type":"text","value":""},{"description":"<p>Types of functions</p>\n","key":"function","type":"text","value":""}]},"url":"https://safesign.safeshare.dk/api/v1/SafeSignFunctions","description":"<p>The POST request is being used when deleting a transmission, receiving information about the document(s) in question and receiving the URL to the document(s).<br /><br />\nFunction supports the following types:<br />\n<strong>cancel</strong> = stops the current order and deletes everything<br />\n<strong>fileinfo</strong> = get information about the SUV files <br />\n<strong>fileurl</strong> = get the URL for the direct file<br /></p>\n","urlObject":{"protocol":"https","path":["api","v1","SafeSignFunctions"],"host":["safesign","safeshare","dk"],"query":[],"variable":[]}},"response":[{"id":"4825d5ad-f142-41f9-b5eb-b8d6a4f388ee","name":"No data","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic base64_encode(\"test@123.com:password\")","type":"text","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"main_file_id","value":"1","description":"main_file_id","type":"text"},{"key":"function","value":"fileinfo","description":"cancel = stops the current order and deletes everything\nfileurl = Gets url to the files\n","type":"text"}]},"url":"https://safesign.safeshare.dk/api/v1/SafeSignFunctions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:53:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"data\": \"No data\"\n}"},{"id":"4d453985-173e-48ea-9a43-da8a136dc1fa","name":"Data returned","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"main_file_id","value":"1","description":"main_file_id","type":"text"},{"key":"function","value":"fileinfo","description":"cancel = stops the current order and deletes everything\nfileurl = Gets url to the files\n","type":"text"}]},"url":"https://safesign.safeshare.dk/api/v1/SafeSignFunctions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 16:53:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"data\": {\n        \"sub_files_list\": [\n            {\n                \"file_sub_id\": \"X\",\n                \"file_name\": \"XXXX.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"file_size\": \"60216\"\n            }\n        ]\n    }\n}"}],"_postman_id":"7be53873-645c-4f4f-8130-e868e0d2a3a3"},{"name":"Receiving a SafeSign transmission","id":"fe01f6ec-754c-420f-882f-38fc622a62f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://safesign.safeshare.dk/api/v1/GetMessages?sent_id=&type=","description":"<p>This GET request can be used for retrieving general information about a transmission, such as who the transmission has been sent to, which documents have been attached etc.<br /><br />\nThis should be used in two different ways:<br /></p>\n<ol>\n<li>When receiving all SafeSign transmissions:<br />\n<strong>sent_id</strong> = The unique identifier (UID) that reveals the record as unique compared to other records.<br />\n<strong>type</strong> = SafeSign. This section should be filled out if you wish to return all current SafeSign transfers in a row.<br /><br />\n2)When receiving detail information about a signing:<br />\n**sent_id** = Should be file_main_id. See the before-mentioned function.<br />\n**type** = detail. This regards detail information about the signing in question.<br /></li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","GetMessages"],"host":["safesign","safeshare","dk"],"query":[{"description":{"content":"<p>Unique identifier (UID)</p>\n","type":"text/plain"},"key":"sent_id","value":""},{"key":"type","value":""}],"variable":[]}},"response":[{"id":"08bf7037-9498-4522-9e36-1fa8df15d92a","name":"Example response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://safesign.safeshare.dk/api/v1/GetMessages?sent_id=1&type=detail","protocol":"https","host":["safesign","safeshare","dk"],"path":["api","v1","GetMessages"],"query":[{"key":"sent_id","value":"1","description":"File main id to get info"},{"key":"type","value":"detail","description":"detail = Detail.\nfiles = files"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 17:01:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.33"},{"key":"X-Powered-By","value":"PleskLin"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"200\",\n    \"status\": \"success\",\n    \"data\": {\n        \"file_main_id\": \"1\",\n        \"status\": \"Not Open\",\n        \"add_date\": \"1599234978\",\n        \"code_sent_time\": \"1599234978\",\n        \"opentime\": \"0000-00-00 00:00:00\",\n        \"SenderID\": \"6259\",\n        \"if_personal\": \"0\",\n        \"remind_days\": \"2\",\n        \"amount_per_mail\": \"0\",\n        \"shipment_title\": \"Titel tiel\",\n        \"sign_type\": \"dialog\",\n        \"sj_uid\": \"300\"\n    }\n}"}],"_postman_id":"fe01f6ec-754c-420f-882f-38fc622a62f3"},{"name":"Receive signer status","id":"0a1c238f-b063-48f2-aec6-af84f1a7a710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://safesign.safeshare.dk/api/v1/GetMessages/signerinfo?file_main_id=","description":"<p>The GET request is being used for retrieving information about whether the transmission has been signed and by whom.<br />\nPlease note that this requires file_main_id that can be returned by transfer functions.<br />\nWe recommend that you combine the status and signing details in order to combine transfer functions and signer status.<br /><br />\nThe transmission has been signed if the status has been set to 1.</p>\n","urlObject":{"protocol":"https","path":["api","v1","GetMessages","signerinfo"],"host":["safesign","safeshare","dk"],"query":[{"description":{"content":"<p>File_main_id</p>\n","type":"text/plain"},"key":"file_main_id","value":""}],"variable":[]}},"response":[{"id":"4a768104-84dc-4d95-9163-0136b6b347af","name":"Missing parameters","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost/safesign/api/v1/GetMessages/signerinfo?file_main_id=","protocol":"https","host":["localhost"],"path":["safesign","api","v1","GetMessages","signerinfo"],"query":[{"key":"file_main_id","value":"","description":"File_main_id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 04 Sep 2020 17:04:24 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.4"},{"key":"X-Powered-By","value":"PHP/7.4.4"},{"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":"Set-Cookie","value":"ci_session=dra1jnpgt475q7u7qgvun6ig5rbgsfm4; path=/; HttpOnly"},{"key":"WWW-Authenticate","value":"Basic realm=\"REST API\""},{"key":"Content-Length","value":"89"},{"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    \"status_code\": \"400\",\n    \"status\": \"error\",\n    \"error_message\": \"Bad Request, missing external ID\"\n}"},{"id":"68b3e144-e4ea-4342-a734-c1123ed70251","name":"Response example","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost/safesign/api/v1/GetMessages/signerinfo?file_main_id=88","protocol":"https","host":["localhost"],"path":["safesign","api","v1","GetMessages","signerinfo"],"query":[{"key":"file_main_id","value":"88"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 04 Sep 2020 15:04:32 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.4"},{"key":"X-Powered-By","value":"PHP/7.4.4"},{"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":"WWW-Authenticate","value":"Basic realm=\"REST API\""},{"key":"Content-Length","value":"287"},{"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    \"status_code\": \"200\",\n    \"status\": \"succes\",\n    \"data\": {\n        \"signers\": [\n            {\n                \"status\": \"0\",\n                \"link_expiry_date\": \"2020-10-24\",\n                \"name\": \"Matias Aabye\",\n                \"email\": \"matias@proteq.nu\",\n                \"phone\": \"31535496\"\n            },\n            {\n                \"status\": \"0\",\n                \"link_expiry_date\": \"2020-10-24\",\n                \"name\": \"Matias Jensen\",\n                \"email\": \"Kontakt@proteq.nu\",\n                \"phone\": \"0\"\n            }\n        ]\n    }\n}"}],"_postman_id":"0a1c238f-b063-48f2-aec6-af84f1a7a710"},{"name":"Receive the signed document/file","id":"4d4d5d91-b68a-40b0-a57b-55c0cf8ee315","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"key_id","type":"text","value":"","disabled":true},{"description":"<p>fileurl</p>\n","key":"function","type":"text","value":"","disabled":true}]},"url":"https://safesign.safeshare.dk/api/v1/SafeSignFunctions/ViewFile?key_id=","description":"<p>Receive the signed document/file by base64_encoded value. \n<br />You can use the message functions to gain the direct URL.\n<br />You can use file_get_content to gain or download the file.<br />\nA case in point is curl, for downloading a file directly:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>    $url = 'https://safesign.safeshare.dk/api/v1/SafeSignFunctions/ViewFile?key_id='.$keyid;\n\n    $ch = curl_init();\n    curl_setopt($ch, CURLOPT_URL, $url);\n    curl_setopt($ch, CURLOPT_USERPWD, $username . \":\" . $password);\n    curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);\n    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n    curl_setopt($ch, CURLOPT_TIMEOUT, 10);\n    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\n    $result = curl_exec($ch);\n    curl_close($ch);\n\n    header('Cache-Control: public');\n    header('Content-type: application/pdf');\n    header('Content-Disposition: attachment; filename=\"'.$filename.'\"');\n    header('Content-Length: '.strlen($result));\n    echo $result;\n</code></pre>","urlObject":{"protocol":"https","path":["api","v1","SafeSignFunctions","ViewFile"],"host":["safesign","safeshare","dk"],"query":[{"description":{"content":"<p>file_sub_id</p>\n","type":"text/plain"},"key":"key_id","value":""}],"variable":[]}},"response":[{"id":"b4d52f72-f95a-40fe-9d06-30e117b5c666","name":"Missing ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://safesign.safeshare.dk/api/v1/SafeSignFunctions/ViewFile?key_id=","protocol":"https","host":["safesign","safeshare","dk"],"path":["api","v1","SafeSignFunctions","ViewFile"],"query":[{"key":"key_id","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 04 Sep 2020 17:02:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.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":"WWW-Authenticate","value":"Basic realm=\"REST API\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status_code\": \"400\",\n    \"status\": \"error\",\n    \"error_message\": \"Missing parameter\",\n    \"details\": \"Missing ID\"\n}"}],"_postman_id":"4d4d5d91-b68a-40b0-a57b-55c0cf8ee315"}],"id":"4de4ea31-114d-47ff-918f-2686d8008a64","description":"<p>With our API for our SafeSign-module, it is possible to forward documents for signature directly from one’s private system or platform using NemID, touch-signing or by clicking the checkbox, hereby accepting the insertion of your signature. </p>\n","_postman_id":"4de4ea31-114d-47ff-918f-2686d8008a64"}],"event":[{"listen":"prerequest","script":{"id":"a09e6888-dbf3-43a2-814e-f676a56d6677","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"58bcfddf-27ed-4e91-8fe7-66e460169fbf","type":"text/javascript","exec":[""]}}]}