Upload document for signing

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 pages array.
  • 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.
Path Params
string
required

Unique applicant identifier in the Sumsub system.

This identifier is a random combination of 24 digits and lowercase Latin characters. It is automatically generated when the applicant is created on the Sumsub side, and can be found in the Dashboard.

If the applicantId is unknown to you, use the Get applicant data (externalUserId) method to fetch it.

Body Params
file
required

Document for signing.

metadata
object

Object that represents a document for signing and a signature appearance. If not provided, the signature will be not displayed.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json