You will need an API Key ID and API Key Secret to use this API. This API is for sharing files from file URLs.

  1. HTTPS POST https://svc.digify.com/v1/file/share
  2. This API requires a share files from a publicly downloadable URL
  3. Require basic authentications with base64 encoded version of <ID>:<Secret>

Sample Request 

 
POST https://svc.digify.com/v1/file/share
Host: svc.digify.com
Connection: keep-alive
Accept: application/json, text/plain, */*
Authorization: Basic amFzcGVyX1Rdfsdsb1BlcjoxMjM0NTZhYmNkZWY=
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh-TW;q=0.4

{
  "FileName": "secret.pdf",
  "URL": "http://www.orimi.com/pdf-test.pdf",
  "Permission": "Restrict",
  "Recipients": "[{\"email\":\"email1@gmail.com\"}]",
  "Watermark": true,
  "Watermark_text": "Confidential",
  "Expiry": "Fixeddate",
  "ExpiryDate": "2017-05-01T12:00:00.000Z"
}

Sample Response

HTTP/1.1 201 Created
Content-Length: 187
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Date: Tue, 11 Apr 2017 05:12:09 GMT

{
  "Guid": "b6ed1e7e242c4ba4b810f5dc866cb6de",
  "Link": "https://digify.com/s/tu1Ofg",
"EmbedLink": "https://embed.digify.com/a/#/file/32d318c8cf43493bb2be409779e1c195",
  "FileName": "Secret.pdf.pdf",
  "Status": {
    "StatusCode": 10000,
    "StatusMessage": "Successfully shared document"
  }
}

Did this answer your question?