Skip to main content

Create

Eslatma

Hujjat imzolangandan so‘ng, oldingi sahifaga qaytish uchun webimzo ga quyidagi URL orqali so‘rov yuboring:
https://webimzo.uz/test/?requestId={RequestId}&secretKey={SecretKey}&redirect={RedirectUrl}

🔹 redirect - bu imzolash jarayonidan so‘ng foydalanuvchini qaytarish kerak bo‘lgan sahifaning havolasi.

POST /v1/SignRequest/Create

Authentication

  • Type: Basic Authentication
  • Credentials:
    • Username: <your_username>
    • Password: <your_password>

Request Headers

  • Content-Type: application/json
  • Accept: text/plain

Request Body example

FieldTypeRequiredDescription
apiKeystringyesAPI key to authenticate the request.
isAllowMultiplebooleanyesIndicates if multiple entries are allowed.
isForceCreatebooleanyesForces the creation of the entry even if one already exists.
signatureMethodIdsinteger[]yesList of signature method IDs to be used.
signDatastringyesThe data to be signed.
signRequestActionTypesarraynoArray of sign request action types (see detailed structure below).
signRequestUsersarrayyesArray of the document signers (see detailed structure below).
tableIdintegeryesThe ID of the table associated with the document.
titlestringnoThe title of the document.
documentIdlongyesThe unique ID of the document.
documentIdAsStringstringnoDocument ID as a string (optional).
documentTypestringnoThe type of the document.
signDataTypeIdintegernoThe ID indicating the type of the sign data.
signDataFileExtstringnoFile extension of the sign data.
hashAlgorithmIdintegernoThe ID of the hash algorithm used for hashing sign data.
printableLinkstringyesThe link to the printable document.
printableLinkExtstringnoThe file extension of the printable link (optional).
templateIdintegernoThe ID of the template associated with the document signing.
organizationNamestringnoThe name of the organization associated with the document.
organizationInnstringnoThe identifier of the organization associated with the document.
isVisibleToOthersbooleanyesIndicates whether the signers is visible to others.

signRequestUsers

FieldTypeRequiredDescription
docStatusIdintegeryesThe ID representing the document's status.
userInfostringyesInformation about the signer.
userKeystringyesThe PINFL key associated with the signer.
userIdintegernoThe unique ID of the signer.
signPriorityintegernoThe priority level of signer for signing the document.
ipAddressstringnoThe IP address of the signer.
userAgentstringnoThe user agent string (browser info).
userPhoneNumberstringnoThe signer's phone number.
parentUserKeystringnoThe parent user key associated with the signer.

signRequestActionTypes

FieldTypeRequiredDescription
actionTypeIdintegeryesThe ID of the action type.
actionTypeNamestringyesThe name of the action type.
templateIdintegernoThe ID of the template associated with this action type.
translatesarraynoArray of translation (see detailed structure below).

translates

FieldTypeRequiredDescription
languageCodestringyesThe language code for the translation.
namestringyesThe translated name of the action type.

Response

200 OK - The request was successful (example)

FieldTypeDescription
successbooleanIndicates whether the request was successful. Always true for successful responses.
resultobjectAn object containing the result of the successful request.
result.requestIduuidA unique identifier for tracking the request.
result.secretKeystringA unique key for tracking the request.
result.smsInformedbooleanIndicates whether the signers were informed with a sms message.

Bad Request (example)

FieldTypeDescription
successbooleanIndicates whether the request was successful. Always false for bad requests.
errorobjectAn object containing detailed error information.
error.codestringA code representing the specific error type.
error.messagestringA detailed error message explaining the issue. Typically localized if needed.

Curl

curl -X 'POST' \
'https://webimzo.uz/test/api/v1/SignRequest/Create' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"apiKey": "string",
"title": "string",
"isForceCreate": true,
"tableId": 0,
"documentId": 0,
"documentIdAsString": "string",
"documentType": "string",
"signDataTypeId": 0,
"isAllowMultiple": true,
"signData": "string",
"signDataFileExt": "string",
"hashAlgorithmId": 0,
"previewPrintableLink": "string",
"printableLink": "string",
"printableLinkExt": "string",
"templateId": 0,
"organizationName": "string",
"organizationInn": "string",
"isVisibleToOthers": true,
"signRequestUsers": [
{
"userKey": "string",
"userInfo": "string",
"userId": 0,
"docStatusId": 0,
"signPriority": 0,
"ipAddress": "string",
"userAgent": "string",
"userPhoneNumber": "string",
"parentUserKey": "string"
}
],
"signRequestActionTypes": [
{
"actionTypeId": 0,
"actionTypeName": "string",
"templateId": 0,
"translates": [
{
"languageCode": "string",
"name": "string"
}
]
}
],
"signatureMethodIds": [
0
]
}'

POST /v1/SignRequest/Get

Authentication

  • Type: Basic Authentication
  • Credentials:
    • Username: <your_username>
    • Password: <your_password>

Request Body (example)

FieldTypeRequired
apiKeystringyes
requestIduuidyes
secretKeystringyes

Response

200 OK - The request was successful (example)

FieldTypeDescription
successbooleanIndicates whether the request was successful. Always true for successful responses.
resultobjectAn object containing the result of the request.
result.iduuidThe unique ID of the sign request.
result.secretKeystringThe secret key used to validate the sign request.
result.titlestringThe title of the document.
result.tableIdintegerThe ID of the table associated with the document.
result.documentIdlongThe unique ID of the document.
result.documentIdAsStringstringThe document ID as a string (may be null).
result.documentTypestringThe type of the document.
result.signDataTypeIdintegerThe ID indicating the type of the sign data.
result.signDatastringThe data that was signed.
result.signerUserCountintegerThe total number of users required to sign the document.
result.signedUserCountintegerThe number of users who have already signed the document.
result.haveMoreSignUserbooleanIndicates whether there are more users who need to sign the document.
result.previewPrintableLinkstringThe link to preview the printable document (may be null).
result.printableLinkstringThe link to the printable document.
result.printableLinkExtstringThe file extension of the printable link (may be null).
result.organizationNamestringThe name of the organization associated with the document.
result.organizationInnstringThe identifier of the organization associated with the document.
result.isVisibleToOthersbooleanIndicates whether the signers is visible to others.
result.smsInformedbooleanIndicates whether the signers were informed with a sms message.
result.signRequestUsersarrayArray of the document signers (see detailed structure below).
result.signatureMethodsarrayArray of signature methods (see detailed structure below).

signRequestUsers

FieldTypeDescription
iduuidThe unique identifier of the sign request user.
userKeystringThe PINFL key associated with the signer.
userInfostringInformation about the signer.
userPhoneNumberstringThe phone number of the signer.
userIdintegerThe unique ID of the signer.
isSignedbooleanIndicates whether the user has signed the document.
signPriorityintegerThe priority level of the signer for signing the document.
docStatusIdintegerThe ID representing the document's status.
signedAtdateTimeThe date and time when the user signed the document.
actionTypeIdintegerThe ID of the action type associated with this sign request.
signatureMethodIdintegerThe ID of the signature method used by the user.
signDetailsstringAdditional details about the signing process.
parentUserKeystringThe parent user key associated with the signer.

signatureMethods

FieldTypeDescription
signRequestIduuidThe unique identifier of the sign request.
signatureMethodIdintegerThe ID of the signature method used in the sign request.
signatureMethodNamestringThe name of the signature method used in the sign request.

Bad Request (example)

FieldTypeDescription
successbooleanIndicates whether the request was successful. Always false for bad requests.
errorobjectAn object containing detailed error information.
error.codestringA code representing the specific error type.
error.messagestringA detailed error message explaining the issue. Typically localized if needed.

Curl

curl -X 'POST' \
'https://webimzo.uz/test/api/v1/SignRequest/Get' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"apiKey": "string",
"requestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"secretKey": "string"
}'

POST /v1/SignRequest/UpdateState

Authentication

  • Type: Basic Authentication
  • Credentials:
    • Username: <your_username>
    • Password: <your_password>

Request Body

FieldTypeRequiredDescription
apiKeystringyesAPI key for authentication
tableIdintegeryesID of the associated table
documentIdlongnoUnique document identifier (optional)
documentIdAsStringstringnoDocument ID as string (optional, may be null)
documentTypestringnoType/category of document (optional)

Response

200 OK - Success

FieldTypeDescription
successbooleanRequest success status. Always true for successful responses.
resultbooleanUpdate operation result (true indicates successful update)

400 Bad Request

FieldTypeDescription
successbooleanAlways false for error responses
errorobjectError details object
error.codestringMachine-readable error code
error.messagestringHuman-readable error description
error.detailsstringAdditional error context (optional, may be null)

Notes

  • Either documentId (numeric) or documentIdAsString (string format) must be provided

Curl

curl -X 'POST' \
'https://webimzo.uz/test/api/v1/SignRequest/UpdateState' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"apiKey": "string",
"tableId": 0,
"documentId": 0,
"documentIdAsString": "string",
"documentType": "string"
}'

POST /v1/SignRequest/GetCallbackLogs

Authentication

  • Type: Basic Authentication
  • Credentials:
    • Username: <your_username>
    • Password: <your_password>

Request Body

FieldTypeRequiredDescription
apiKeystringyesAPI key for authentication
isErrorbooleannoFilter logs by error status (true=errors only)
signRequestIdsarray[uuid]noSpecific sign request IDs to filter logs

Response

200 OK - Success

FieldTypeDescription
successbooleanRequest success status. Always true when successful.
resultarrayArray of callback log entries
result[]objectCallback log entry details:
callbackUrlstringThe URL that was called
errorCodestringError code if callback failed (may be null)
errorMessagestringDescriptive error message (may be null)
errorCountintegerNumber of consecutive failure attempts
errorAtdatetimeTimestamp of last error (UTC, may be null)
requestBodystringFull request body sent in callback
commentstringAdditional debug information (may be null)
responseStatusCodeintegerHTTP status code received from callback endpoint
responseDetailsstringRaw response content from callback endpoint
successAtdatetimeTimestamp of last successful callback (UTC, may be null)

400 Bad Request

FieldTypeDescription
successbooleanAlways false for error responses
errorobjectError details object
error.codestringMachine-readable error code (e.g., "INVALID_REQUEST_IDS")
error.messagestringHuman-readable error description
error.detailsstringAdditional error context (optional, may be null)

Curl

curl -X 'POST' \
'https://webimzo.uz/test/api/v1/SignRequest/GetCallbackLogs' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"apiKey": "string",
"isError": true,
"signRequestIds": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'

Constants

The following constants are used in the request body to specify certain types, methods, or codes.

SignDataTypeIdConst

Constant NameValueDescription
STRINGFILE_DOC_PDF1Represents a PDF document file for signing.
STRINGFILE_PRINTABLE2Represents a printable string file.
PRINTABLE_HASH3Represents a hash of a printable file.
STRINGFILE4Represents a general string file for signing.
BYTEFILE5Represents a byte array file for signing.

SignatureMethodIdConst

Constant NameValueDescription
E_IMZO1Signature method using the E-Imzo service.
STYX_IMZO2Signature method using the Styx-Imzo service.
SMS_CODE3Signature method using an SMS code verification.

LanguageCodeConst

Constant NameValueLocalize ValueDescription
RU"RU"ru-RURussian language code.
UZ_CYRL"UZ_CYRL"uz-CyrlUzbek language in Cyrillic script.
UZ_LATN"UZ_LATN"uz-LatnUzbek language in Latin script.
EN"EN"en-USEnglish language code.
QR"QR"kaaKarakalpak language code.