You will need an API Key ID and API Key Secret to use this API. This API is for uploading a single file from local storage or via file stream.

HTTPS POST https://svc.digify.com/v1/file/upload

  1. This API is used to share single file from local storage or via file stream.
  2. Require basic authentications with base64 encoded version of <ID>:<Secret>

Sample Request 

POST https://svc.digify.com/v1/file/upload

Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468
Authorization: Basic amFzcGVyX3RldmVsb31lcjoxMjM0NTZhYmNkZWY=
Host: svc.digify.com
Content-Length: 42821
---------------------------acebdf13572468
Content-Disposition: form-data; name="FileSettings"
{"Permission":"Public","RequestEmail":True}
---------------------------acebdf13572468
Content-Disposition: form-data; filename="confidential.pdf"
Content-Type: application/pdf
<@INCLUDE *C:\Users\user1\Desktop\confidential.pdf*@>
---------------------------acebdf13572468--

Sample Response

HTTP/1.1 201 Created
Content-Length: 206
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Date: Thu, 27 Apr 2017 08:12:26 GMT

{
  "Guid": "d5b8f01b0cfe493e9bb1af5e88ccff27",
  "Link": "https:// digify.com/s/1bjwGw",
  "FileName": "confidential.pdf",
  "Status": {
    "StatusCode": 40000,
    "StatusMessage": "Successfully shared uploaded document"
  }
}

Did this answer your question?