Retrieving the XML and PDFs
Prerequisites
A pair of API key ID and API key secret.
A
CONCLUDEDinteraction or signature.
Interactions
Inside the response payload of a GET of a CONCLUDED interaction, you can find the property:
"attachedFiles": {
"xmlUrl": "https://kopjra-test.s3.eu-west-1.amazonaws.com/wias/interactions/xmls/85.xml?AWSAccessKeyId=AKIAJLDCCQVSFF5WBFOA&Expires=1519736636&Signature=CY%2FuXlta6f83c30e6mKzOPdbe4o%3D",
"xmlSize": 87541
}attachedFiles.xmlUrl is a short-lived, self-signed URL that allows you to download the XML forensic evidence.
Signatures
Inside the response payload of a GET of a CONCLUDED signature, you may find the properties:
"attachedFiles": {
"xml": {
"url": "https://kopjra-test.s3.eu-west-1.amazonaws.com/wias/interactions/xmls/85.xml?AWSAccessKeyId=AKIAJLDCCQVSFF5WBFOA&Expires=1519736636&Signature=CY%2FuXlta6f83c30e6mKzOPdbe4o%3D",
"size": 87541
},
"signedDocuments": [
{
"id": 124,
"originalDocumentId": 123,
"name": "contratto.pdf",
"url": "https://kopjra-test.s3.eu-west-1.amazonaws.com/wias/interactions/xmls/85.pdf?AWSAccessKeyId=AKIAJLDCCQVSFF5WBFOA&Expires=1519736636&Signature=CY%2FuXlta6f83c30e6mKzOPdbe4o%3D",
"size": 2345443,
"tags": {}
}
],
"documents": [
{
"id": 123,
"name": "contratto.pdf",
"url": "https://kopjra-test.s3.eu-west-1.amazonaws.com/wias/interactions/xmls/85.pdf?AWSAccessKeyId=AKIAJLDCCQVSFF5WBFOA&Expires=1519736636&Signature=CY%2FuXlta6f83c30e6mKzOPdbe4o%3D",
"size": 345234543,
"tags": {}
}
]
}Here:
attachedFiles.xml.urlis a short-lived, self-signed URL that allows you to download the XML forensic evidence.signedDocuments[].urlis a short-lived, self-signed URL of the signed PDF filesdocuments[].urlis a short-lived, self-signed URL of the original PDF file passed in the signature creation API call.
Do not store the previous URLs because they expire in about a minute. You may rather re GET the signature to get a fresh URL every time.