Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Retrieve the completed document
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Once signed, a full copy of the completed document can be obtained by calling into the Get Completed Document endpoint.
Good to know...
This returns PDFs and Word documents.
Retrieve the completed document endpoint
Below is the end point used for get completed document.
HTTP
Sandbox GET https://demo.api.yotisign.com/v1/sign-requests/{sign_request_id}/completed-documents Production GET https://api.yotisign.com/v1/sign-requests/{sign_request_id}/completed-documentsExample
A complete example of how to GET a completed document can be found below.
Javascript
const rp = require('request-promise');const fs = require('fs');const signRequestId = 'e2a78987-2c07-4b0a-96cf-b155ff6e60e9';const options = { method: 'GET', uri: `${process.env.BASE_URL}/v1/sign-requests/${signRequestId}/completed-documents`, headers: { authorization: `Bearer ${process.env.API_KEY}`, }, encoding: null};rp(options) .then(body => fs.writeFileSync('example.pdf', body)) // write pdf to file .catch(err => console.log(err.error));| Parameter | Description |
|---|---|
Authorization (header) | Your API Key is required on all calls to the API and should be sent as a bearer token. |
| Content-Type (header) | application/pdf |
| sign_request_id (path) | This is a UUID referring to the Completed Document you are looking to retrieve. This will be the UUID obtained from the Create Sign Request endpoint |
On success, this endpoint returns a status code of 200 with the document as a PDF.
Other response codes
| Response | Code |
|---|---|
| 401 | 401 is returned if a request is unauthorised. This is likely due to the API Key either being incorrect or not being sent properly in the headers. The key should be sent as a Bearer token over the authorisation header. |
| 404 | If the requested document is not found you will receive a 404. This will be due to the request ID being invalid. |
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Status of sign requestGot a question? Contact us here.
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message