Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This operation allows to download one or more attachments associated with any of the products (EviMail, EviSign, EviNotice).

In this service, the field UniqueIds to be reported will be a list with the unique identifiers (uniqueId) of the attachments to download.

Code Block
titleExample of request
POST https://app.evicertia.com/api/AttachmentDownload	 HTTP/1.1
Content-Type: application/json
Accept: application/json
Authorization: basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
Host: app.evicertia.com

{
	"uniqueIds":["cf00c00b-750f-4956-be1e-ac79010fa0ab"]
}

The result of this operation will deliver the following items:
  • UniqueId: Unique identifier allocated to the attachment.
  • CreationDate: Creation time/date of attachment.
  • EvidenceUniqueId: Identifier of evidence.
  • ContentId: Information on mime type of attachment.
  • DisplayName: Name of the attachment.
  • Filename: Name of the file. 255-character alphanumeric string.
  • mimeType: Header indicating the type of media that represents the content of the attachment, it consists of a type: type and a subtype: subtype.
  • contentDisposition: Disposition of bytes.
  • contentEncoding: Encoding of bytes.
  • contentLength: It shows the encoding of attachment.
  • Hash: Algorithm used to create the hash.
  • Data: Content of attachment in Base64.
  • TotalMatches: Number of logs (total) matching the query.


Code Block
titleExample of answer in JSON
{
	"results": [
		{
			"uniqueId": "000c1f7042aca3ea149f943879726a87",
			"creationDate": "2020-11-20T17:28:57.1880970+01:00",
			"evidenceUniqueId": "000D1f7042aca3ea189f943879726a87",
			"contentId": "ee302292-8f64-479b-b5dd-ac79010f8895",
			"displayName": "Attachment.pdf",
			"filename": "Attachment.pdf",
			"mimeType": "application/pdf",
			"contentDisposition": "attachment; filename=\"Attachment.pdf\"",
			"contentEncoding": "utf-8",
			"contentLength": 2960790,
			"hash": "{algorithm:SHA256,value:3/V5lRHf87BNUmWsFSOeeny0OUEUH8c8h2RgU0FjZp0=}",
			"data": "[ATTENTION: the BASE64 of the PDF file would follow here.]
		}
	],
	"totalMatches": 1
}