Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleAttention

Please note that this documentation and the links refer to the api v6. For more information please see the  migration guide and the documentation related to v5.


Info

REST API /v3 and /v4 DEPRECATION: The 23.76 (published March 2024) will be the last LTS version that includes these API versions. By early June 2024, the REST API routes to v3/v4 will be deactivated on DEMO. Early December 2024, the REST API routes to v3/v4 will be removed from feature stream releases. Note that there is no date communicated yet to discontinue REST APIv5 (and where v5 refers to v4 routes, these will still remain); however we recommend to use the /v6 API specification already.

Introduction

On this page you will find the eSAW API description. First we start with a basic overview of the API. If you are looking for examples we recommend the Postman Sample, Envelope structure and our Stories and Examples.

...

String and array objects are validated. If hovering over an object in the model section on e.g. https://demo.esignanywhere.net/Api/swagger/ui/index you can see which validation is performed. In the following sample the validation for the Documents array is such that at least one document must be added and maximum of 50 documents are allowed.

Model Items LimitationImage RemovedModel Items LimitationImage Added

For string objects, the length is validated. In the following sample, a maximum of 100 characters is checked for the string Name.

Model Length LimitationImage RemovedModel Length LimitationImage Added

Ids have a fixed length, therefore the minimum and maximum values are the same:

Model Lengths LimitationImage RemovedModel Lengths LimitationImage Added

Authorization

This section covers the authorization options for REST-API integrations. For the authorization you have different options with REST API; as described in the next chapters. If you are authorized you will get a HTTP/200 Ok info. Otherwise you will get a 401 Unauthorized error.

...

Consider, that our system expects the full callback url, including the parameter list you expect, with the placeholders that should be replaced by values at runtime. You can also add your own paramter parameter for that envelope (e.g. internal references). Moreover, on our shared SaaS environments only HTTPS callbacks (port 443, and 1025-65535) callbacks are allowed.

Placehoder for callback URL:

...

Consider, that our system expects the full callback url, including the parameter list you expect, with the placeholders that should be replaced by values at runtime. You can also add your own paramter parameter for that envelope (e.g. internal references). Moreover, on our shared SaaS environments only HTTPS callbacks (port 443, and 1025-65535) callbacks are allowed.

Sample:

https://www.mycallback.at?envelope=##EnvelopeId##&action=##Action##

...

Code Block
languagejava
themeEclipse
  "CallbackConfiguration": {
    "CallbackUrl": "string",
    "StatusUpdateCallbackUrl": "string",
    "StepActionCallbackConfigurationActivityActionCallbackConfiguration": {
      "Url": "string",
      "ActionCallbackSelection": {
        "ConfirmTransactionCode": true,
        "DefaultEventType": true,
        "AgreementAccepted": true,
        "AgreementRejected": true,
        "RequestPrepareAuthenticationInformationSuccess": true,
        "PrepareAuthenticationSuccess": true,
        "AuthenticationFailed": true,
        "AuthenticationRejected": true,
        "AuthenticationSuccess": true,
        "ReAuthenticationFailed": true,
        "AuditTrailRequested": true,
        "AuditTrailXmlRequested": true,
        "CalledPage": true,
        "WhoIsInformation": true,
        "DocumentDownloaded": true,
        "FlattenedDocumentDownloaded": true,
        "AddedAnnotation": true,
        "AddedAttachment": true,
        "AppendedDocument": true,
        "FormsFilled": true,
        "ConfirmReading": true,
        "PageViewChanged": true,
        "SendTransactionCode": true,
        "PrepareSignWorkstepDocument": true,
        "SignWorkstepDocument": true,
        "UndoAction": true,
        "WorkstepCreated": true,
        "WorkstepFinished": true,
        "WorkstepRejected": true,
        "DisablePolicyAndValidityChecks": true,
        "EnablePolicyAndValidityChecks": true,
        "AppendFileToWorkstep": true,
        "AppendTasksToWorkstep": true,
        "SetOptionalDocumentState": true,
        "PreparePayloadForBatch": true
      }
    }
  },

...

TypeDescription
ConfirmTransactionCode A transaction code was sent
AgreementAccepted The user accepted the agreement
AgreementRejectedThe user rejected the agreement
PrepareAuthenticationSuccessThe prepare authentication process succeeded
AuthenticationFailedThe user failed to authenticate
AuthenticationSuccessThe user succeeded to authenticate
AuditTrailRequestedThe audittrail was requested
AuditTrailXmlRequestedThe audittrail XML was requested
CalledPageThe viewer site was requested
DocumentDownloadedThe document download was requested
FlattenedDocumentDownloadedThe flattened document download was requested
AddedAnnotationAn annotation was added
AddedAttachmentAn attachment was added
AppendedDocumentA document was appended
FormsFilledA form field was filled
ConfirmReadingA reading task was completed
PageViewChangedNote: This event is only used for the audit trail, no notification is sent to the configured URL. The user changed the page view (e.g. by scrolling through the document).
SendTransactionCodeThis event is raised, when a TransactionCode for a signature with type TransactionCode * has been sent using the IdentityServer or the TransactionCodeSenderPlugin
PrepareSignWorkstepDocumentA signature is prepared for signing
SignWorkstepDocumentTry to sign a signature
UndoActionAn action was undone
WorkstepCreatedA workstep was created
WorkstepFinishedA workstep was finished
WorkstepRejectedA workstep was rejected
DisablePolicyAndValidityChecksThe policy and validity checks have been disabled. 
EnablePolicyAndValidityChecksThe policy and validity checks have been enabled. 
AppendFileToWorkstepA file was appended to the workstep
AppendTasksToWorkstepA task was added to the workstep
SetOptionalDocumentStateA optional document became either active or inactive
PreparePayloadForBatchThe payload is getting prepared for batch signing

...