/** * Dropsigner (HML) *

Authentication

In order to call this APIs, you will need an API key. Set the API key in the header X-Api-Key:

X-Api-Key: your-app|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

HTTP Codes

The APIs will return the following HTTP codes:

Code Description
200 (OK) Request processed successfully. The response is different for each API, please refer to the operation's documentation
400 (Bad Request) Syntax error. For instance, when a required field was not provided
401 (Unauthorized) API key not provided or invalid
403 (Forbidden) API key is valid, but the application has insufficient permissions to complete the requested operation
422 (Unprocessable Entity) API error. The response is as defined in ErrorModel

Error Codes

Some of the error codes returned in a 422 response are provided bellow*:

*The codes shown above are the main error codes. Nonetheless, this list is not comprehensive. New codes may be added anytime without previous warning.


Webhooks

It is recomended to subscribe to Webhook events instead of polling APIs. To do so, enable webhooks and register an URL that will receive a POST request whenever one of the events bellow occur.

All requests have the format described in Webhooks.WebhookModel. The data field varies according to the webhook event type:

Event type Description Payload
DocumentSigned Triggered when a document is signed. Webhooks.DocumentSignedModel
DocumentApproved Triggered when a document is approved. Webhooks.DocumentApprovedModel
DocumentRefused Triggered when a document is refused. Webhooks.DocumentRefusedModel
DocumentConcluded Triggered when the flow of a document is concluded. Webhooks.DocumentConcludedModel
DocumentCanceled Triggered when the document is canceled. Webhooks.DocumentCanceledModel

To register your application URL and enable Webhooks, access the integrations section in your organization's details page.

* * OpenAPI spec version: 1.48.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { DocumentsCreatorModel } from './documents-creator-model'; import { FlowActionsFlowActionCreateModel } from './flow-actions-flow-action-create-model'; import { ObserversObserverCreateModel } from './observers-observer-create-model'; /** * * @export * @interface DocumentListDocumentFlowsModel */ export interface DocumentListDocumentFlowsModel { /** * * @type {string} * @memberof DocumentListDocumentFlowsModel */ q?: string; /** * The list of actions (signers and approvers) that will be in the document. * @type {Array} * @memberof DocumentListDocumentFlowsModel */ limit?: Array | null; /** * * @type {Array} * @memberof DocumentListDocumentFlowsModel */ observers?: Array | null; /** * * @type {string} * @memberof DocumentListDocumentFlowsModel */ id?: string; /** * * @type {string} * @memberof DocumentListDocumentFlowsModel */ name?: string | null; /** * The date the flow was created. * @type {Date} * @memberof DocumentListDocumentFlowsModel */ creationDate?: Date; /** * The date of the last update to the flow. * @type {Date} * @memberof DocumentListDocumentFlowsModel */ updateDate?: Date; /** * * @type {DocumentsCreatorModel} * @memberof DocumentListDocumentFlowsModel */ createdBy?: DocumentsCreatorModel; }