Getting signed documents
After the signing process finished and all documents are signed the SignatureRequestCompleted
event is fired via webhook.
See Working with webhooks section for more details.
Then it is possible to fetch the signed documents and their metadata from the storage and metadata services.
Get metadata of the document
Request
GET https://api-test.teliasign.com/metadata/document/{documentId} Authorization: Bearer {Received token value from login service} Ocp-Apim-Subscription-Key: {subscription-key}
Note: Take the documentId
from the response key id
when attaching document to signature request.
Response
{ "total": 0, "items": [ { "key": "string", "value": "string", "entityId": "string", "entityType": "SignatureRequest" } ] }
Get document binary
Request
GET https://api-test.teliasign.com/storage/document/{blobConnectionId} Authorization: Bearer {Received token value from login service} Ocp-Apim-Subscription-Key: {subscription-key}
Note: Take the blobConnectionId
from the response key blobConnectionId
when uploading documents.
Response
The binary file with application/octet-stream
MIME type.