Mobbeel for developers

Mobbeel for developers

  • MobbScan
  • MobbID
  • MobbSign
  • Clients
  • FAQ

›Help

MobbSign Web SDK

  • Overview
  • Integrate via NPM
  • Configure

Usage

  • Load a document
  • Sign a document
  • Finish the process
  • Error handling
  • Listening events

Customize UI

  • Customize action buttons
  • Customize signature stroke
  • Adding languages

Help

  • API reference
  • Changelog
  • Migration guides

API Reference

constructor(options)

This function creates and renders MobbSign in a given HTML element. It returns a configured instance in a Promise. You should use that instance to load comments.

✅ This is right

new MobbSign(config).then(mobbsign => mobbsign.load(docID));

❌ This is wrong

const mobbsign = new MobbSign(config);
mobbsign.load(docID);

Parameters

ParemeterRequiredTypeDescription
rootYesElementHTML Element where MobbSign will be rendered. It should have a relative position with a fixed width and/or height
endpointYesStringMobbSign Server API base URL.
apiKeyYesStringMobbSign Server API Key.
appIDYesStringMobbSign Server App ID.
languageNoStringLanguage of the UI (valid values: es or en). If not provided en is the default value.
onDocumentLoadedNoFunctionCalled everytime a document is loaded.
onSignatureAcquiredNoFunctionCalled everytime a signature is acquired (drawn). Afterwards, the signature could be discarded or confirmed.
onSignatureDiscardedNoFunctionCalled everytime a user discards a signature.
onSignatureConfirmedNoFunctionCalled when a signature is confirmed by a user. This occurs befure the document is actually signed.
onDocumentSignedNoFunctionCalled when the document is signed by MobbSign.
onErrorNoFunctionCalled when an error occurs. The error will be provided as parameter.
onDoneNoFunctionCalled when the user finishes the signing process.
configPathYesStringRelative path to the provided config.js file.
libPathYesStringRelative path to the provided lib/ folder.
imgUrlYesStringPath or URL to the provided img/ folder.
localesUrlYesStringPath or URL to the translations files.
blockNoTactileDevicesNoBooleandefault true, block the use of MobbSign on non-touch screens
onlyReadNoBooleandefault false, to hide actions buttons and manage the document as read-only.
signatureAcquisitionTimeoutNoIntTimeout for wait since the user finish the signing, in milliseconds. Default 2000.
customizationNoObjectCustomize toolbar action buttons.
onlyFinishWhenEveryoneSignNoNumbershow the Finish button only when all the signer's signatures have been captured.
0 (default): show the Finish button after the first signature is made
1: show the Finish button after all signatures in the signing act have been completed
2: show the Finish button after all signatures on the document have been completed.
allowSignAfterDocumentIsSignedNoBooleanAllow to continue signing the document once the signatures of all signers have been captured. Default: true
userTokenNoStringOnly for BIOMETRIC_WITH_CERTIFICATE signature: if applies, user identification token in the documentation manager
signersNoNumber[]array with the document signer(s) ID(s) who will sign using the created MobbSign object

Returns

  • A Promise which resolves to an instance of MobbSign.

load(documentID)

This function loads a document in a configured instance.

If you need to load several documents in a row, you should wait the end of previous loads:

✅ This is right

mobbsign.load(docID).then(() => mobbsign.load(otherDocID));

❌ This is wrong

mobbsign.load(docID);
mobbsign.load(otherDocID);

Parameters

  • documentID (string): MobbSign API document ID.

Returns

  • A Promise which resolves when the document is loaded.

← Adding languagesChangelog →
  • constructor(options)
    • Parameters
    • Returns
  • load(documentID)
    • Parameters
    • Returns
Mobbeel for developers
Product Documentation
MobbIDMobbScanMobbSign
Connect
LinkedInFacebookX
More
FAQContact Us
Mobbeel Solutions SL
Copyright © 2025 Mobbeel Solutions SL