Skip to main content

Send And Sign API

This reference describes the Send and Sign API, which you can integrate with Lumin Sign send and sign flow.

Method: lumin.sign.sendAndSign

The sendAndSign method start the send and sign flow with following input:

window.lumin.sign.sendAndSign(config: SendAndSignConfig)

Data type: SendAndSignConfig

PropertiesTypeDescription
fileDataFile or Blob or () => (File or Blob)Required. Your file will be sent to Lumin Sign
accessTokenstringRequired. An Bearer token with scope bananasign:document.create included
fileNamestringRequired. Name of file that will be saved in Lumin Sign
onError(error: any) => voidError handler
onLoading(state: boolean) => voidState of send and sign flow

We create a custom dom element <lumin-sign /> for rendering Send and Sign button (Logo Preview), ex:

function onSend() {
window.lumin.sign.sendAndSign();
}

<lumin-sign size="small" onClick={onSend}/>
PropertiesTypeDescription
sizestringSize of button. small or large (Default: large)
hideLogobooleanRender button without logo (Default: false)