marioneil

Download link

0 votes
Is there a way to generate a download link for the documents on onespan? We would like to house the link on an internal website. I am aware of the REST call to download docs.. https://developer.esignlive.com/guides/feature-guides/retrieving-documents/ However I need to create a download link that I can share. with other internal websites. How does the email sent on completion, contain a download link. See the attached screnshot of email I got after completion.

Attachments
Approved Answer

Reply to: Download link

0 votes
Hi Mario, To get access to the document, you need to add credential information in your request to prove it's a valid link request by someone who has access to the transaction , so there's two solutions for you: 1. You design and expose the download link by yourself, by mapping the exposed link to following downloading URL where you can use POST request with API Key as your credential to download the file:
sandbox.esignlive.com/api/packages/{packageId}/documents/{documentId}/pdf
Then you directly return the byte[] of the document as an output stream to your HttpResponse. 2. Or you generate the signing URL again where carries the loginToken which allows your signer to get access to the Completed Signing Ceremony and download documents from there. (This is by default how OneSpan Sign send completed document link to signers) By calling this API:
HTTP Request
GET /api/packages/{packageId}/roles/{roleId}/signingUrl

HTTP Headers
Accept: application/json
Content-Type: application/json
Authorization: Basic api_key
Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Download link

0 votes
Thanks for your quick reply

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off