API reference, Electronic signature

Sign every document with one signature

POSThttps://demo-api.incodesmile.com/omni/document-signature/sign

Takes either a drawn signature (signatureBase64) or a typed name (typedName) and produces one signed PDF per document: the original plus an appended signature page for PDF, the signature page alone for MARKDOWN. A typed name is rendered in a cursive font. Every document shares the returned signatureId. documentIds is optional and lists every document the user was shown; when sent and it does not match the session's documents nothing is signed and the call fails with "Documents changed, reload them". Calling again after success returns the existing signature. Session token only. Scroll-to-end is enforced by the SDK and reported through interview events.

Query parameters

interviewIdstring

Headers

api-versionstringrequiredDefaults to 1.0

Request body

application/json

signatureBase64string

Base64 PNG of the handwritten signature drawn by the user. Exactly one of signatureBase64 and typedName is required

typedNamestring0 to 100 chars

Name typed by the user instead of drawing; rendered in a cursive font on the signature page

documentIdsarray[string]

Optional. documentId of every document the user was shown, as returned by GET /documents. When sent, the call is rejected if it does not match the session's current documents

Responses

Response body (application/json)

signatureIdstring
signedAtinteger (int64)
documentIdstring
orderinteger (int32)

1-based position in which the documents are shown

namestring
formatstring
enumPDFMARKDOWN
sha256string

Lowercase hex SHA-256 of the original bytes, also printed on the signature page

sizeBytesinteger (int64)
signedAtinteger (int64)

Epoch millis of the signature, null until signed

signatureIdstring

Shared by every document signed in the same call

contentstring

Markdown text, only for MARKDOWN documents

urlstring

Presigned URL of the original, valid one hour

signedUrlstring

Presigned URL of the signed PDF: original plus signature page for PDF, the signature page alone for MARKDOWN. Null until signed.