post
https://api.sumsub.com/resources/applicants//esign/resources/uploadDoc
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Use this method to override the document signing and signature appearance settings configured in the client Dashboard. This method allows you to dynamically provide unique documents for signing to each applicant while still using the same applicant level for the QES flow.
Request example
curl -X POST \
"https://api.sumsub.com/resources/applicants/68516cc16724f8f19c7d000f/esign/resources/uploadDoc" \
-H 'Accept: multipart/form-data' \
-H 'Content-Type: multipart/form-data' \
-H 'X-App-Token: <your-app-token>' \
-H 'X-App-Access-Sig: <your-signature>' \
-H 'X-App-Access-Ts: <unix-timestamp>' \
-F 'content=@/path/to/your/file.pdf' \
-F 'metadata={
"imageFileName": "Displayed File Name",
"signatures": [{
"pages": [
{
"page": 1,
"x": 400,
"y": 45,
"width": 150,
"height": 45
},
{
"page": 2,
"x": 400,
"y": 45,
"width": 150,
"height": 45
}
]}
]}'Additional guidelines for document uploading
- Only documents in PDF format are supported.
- You can only submit one document at a time. If you need to submit multiple documents for signing, you must make several API calls.
- Providing several objects in the signatures array will lead in error.
- If you want the signature to appear on multiple pages, you need to provide multiple objects in the
pagesarray. - Providing an invalid page number (for example, 100 for a 10-page document) will cause the signing process to fail.
- Both the signature size and positions are specified in PDF units. For example, the A4 page size of 210mm x 297mm = 595 x 842 PDF units.
- If you reset the applicant or the E-Sign step, the documents uploaded via this method are deleted. Upload them again before the applicant reaches the E-Sign step.