eSignatures API
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?
Sign offline
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
The Yoti Sign API has a ‘signed-documents’ function. This allows you to upload a file which has been physically signed by the user. When processing is successful the file will be added to the sign receipt and the recipient will be marked as having signed. If there are errors during this process, integrators will be notified through the sign_ offline _ upload_errors notification.
HTTP
Sandbox POST https://demo.api.yotisign.com/v2/envelopes/:envelopeId/recipients/:recipientId/signed-documentsHTTP
Production POST https://api.yotisign.com/v2/envelopes/:envelopeId/recipients/:recipientId/signed-documentsHeaders explained
The following elements are needed:
| Header | Content |
|---|---|
| Authorization | API Key to call the Yoti Sign API. This should be sent as a bearer token. |
| Content-Type | multipart/form-data |
Example Code
Javascript
Java
PHP
C#
Go
x
const rp = require("request-promise");const fs = require("fs");const options = {}; //options objectconst signOffline = () => { const request = { method: "POST", uri: `<BASE_URL>/v2/envelopes/<envelopeId>/recipients/<recipientId>/signed-documents`, formData: { file: fs.createReadStream("path/to.pdf") }, headers: { authorization: "Bearer <API_KEY>", }, }; return rp(request) .then((body) => body) .catch((err) => err);};//send requestlet result = await signOffline();Response Body
JSON
{ "status": "QUEUED"}Error Codes
| Error code | Description |
|---|---|
| 400 | Bad Request, example: id provided not a UUID |
| 401 | Unauthorised request, example: requesting the status on an envelope you are not authorised to view |
| 413 | The combined file sizes have exceeded the 75MB limit |
| 422 | The request body did not pass validation |
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:
IntroductionGot 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