Skip to content

  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us

1. API concept

  • Overview
  • 1.1 Supported web browsers
  • 1.2 Supported languages
  • 1.3 How to prepare document for signature
  • 1.4 How to use acrofields
  • 1.5 How to use pre-defined signature fields
  • 1.6 Document states
  • 1.7 Storing and deleting documents
  • 1.8 OKDokument API call list
  • 1.9 QR code
  • 1.10 Email and SMS
  • 1.11 Dictionary

2. Core API services

  • Authorization
  • Create signature request
  • Upload
  • Open document
  • Information about signing completion
  • Result URL
  • Download document
  • Delete document
  • Rules
  • Document fields configuration
  • Integration Resources & API Documentation

3. Additional API services

  • List of the documents
  • Document Info
  • Update Signature Request
  • Delete Signature Request
  • Signature Request Counter
  • Upload document

4. Use cases

  • Overview
  • 4.1 Example 1: Simple one-round signing
  • 4.2 Example 2: One-round signing with redirect url
  • 4.3 Example 3: One-round signing with send info
  • 4.4 Example 4: Multi-Round Signing

5. Configuration of the signing process

  • Overview
  • 5.1 One-round signing with simple PDF
  • 5.2 Multi-round signing with simple PDF
  • 5.3  One-round signing with PDF with tags
  • 5.4 Multi-round signing with PDF with tags
  • 5.5 One-round signing with PDF with signature acrofields
  • 5.6 Multi-round signing with PDF with signature acrofields
  • 5.7 Accessing document after inserting OTP
  • 5.8 Sign document with OTP
  • 5.9 Email
  • 5.10 QR code

6. Examples

  • Postman examples
View Categories
  • Home
  • Documentation
  • Web App - OKdokument API
  • 2. Core API services
  • Upload

Upload

The Upload Service provides an alternative method for submitting documents to the system. While functionally similar to the Signature Request service.

Unlike the standard signature request which requires document data to be encoded as a Base64 string within a JSON payload, the Upload Service utilizes Multipart Form Data (multipart/form-data).

Service specifications #

URLhttps://apidev.okdokument.com/JSON/upload
MethodPOST
AuthenticationHeader x-api-key
Content Typemultipart/form-data
Response Typeapplication/json

Request description #

Request parameters:

KeyTypeDescription
dataTexttextDocument metadata in JSON format
datafileDocument data in JSON format. You can use the dataText parameter to send metadata as text directly in the request, or the data parameter to send metadata as a file.
filefileThe PDF document to be uploaded.
HTTP- Click to view HTTP code snippet
POST /JSON/upload HTTP/1.1
Host: localhost:8080
x-api-key: 7796b696_bd2b1aaf7ef4f09be9f52ce2d8d599674d81aa9d6a4421696dc4d93dd0619d682ce56b4d64a9ef097761ced99e0f67265b5f76085e5b0ee7ca4696b2ad6fe2b2
Content-Length: 573
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="dataText"

{
      
      "rules": {
             "signAnywhereEnabled": false
      },
      "allowedFields": {
             "SIGNATURE": [
                    "SC_signature"
             ],
             "TEXT": [
                    "TO_text",
                    "TC_text"
             ]
      }
}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="PDF/TestLenso.pdf"
Content-Type: application/pdf

(data)
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Data text example :

{
	"rules": {
		"signAnywhereEnabled": false
	},
	"allowedFields": {
		"SIGNATURE": [
			"SC_signature"
		],
		"TEXT": [
			"TO_text",
			"TC_text"
		]
	}
}

Signature Request OFF #

If signatureRequestId : off is present in data request system performs a “Storage Only” upload. The file is saved and validated, but no signature process is initiated

Request body example :

{
	"signatureRequestId": "off"
}

Response example :

{
    "message": "msg.document.upload",
    "result": "00h2dY9Zo8KN-MXBFTX1Sa7GmISgDXf0Ntw3jUqReRmjFtnrDf2S3J-Fbe49iVQA"
}
Updated on 08/05/2026
Create signature requestOpen document
Table of Contents
  • Service specifications
  • Request description
  • Signature Request OFF
  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us
Proudly powered by WordPress