API reference, Electronic signature

Add a document to review and sign

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

Adds one document to the session's Document Signature module. Documents are shown in the order they are added. Limits: PDF or MARKDOWN, at most 10 documents per session, at most 10 MB each. Rejected once the session's documents are signed. Requires an executive or admin token of the session's organization and the interviewId parameter.

Query parameters

interviewIdstring

Headers

api-versionstringrequiredDefaults to 1.0

Request body

application/json

namestring≥ 1 chars

Name shown to the user and printed on the signature page

formatstringrequired

PDF or MARKDOWN

enumPDFMARKDOWN
contentstring≥ 1 chars

Base64 of the PDF bytes for PDF, the markdown text itself for MARKDOWN. Max 10 MB decoded.

Responses

Response body (application/json)

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.