ZapSign API
Search…
How widget works
Place the ZapSign widget inside your website in 1 minute
If you want the signer to sign a document without leaving your site, you can add our signature widget to your webpage as in the example below, just replace the "SIGNER-TOKEN" with a real token.
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Test Widget ZapSign</title>
5
</head>
6
<body>
7
8
<iframe src="https://app.zapsign.co/verificar/SIGNER-TOKEN" width="100%" height="800px"></iframe>
9
10
<script>
11
window.onmessage = function(e){
12
if(e.data === 'zs-doc-loaded'){
13
alert('Doc loaded in iframe')
14
}
15
if(e.data === 'zs-doc-signed'){
16
alert('Doc signed by signer')
17
}
18
if(e.data === 'zs-signed-file-ready'){
19
alert('Signed file (final pdf) ready to download')
20
}
21
};
22
</script>
23
24
</body>
25
</html>
Copied!
The "window.onmessage" callback function is optional, it's just a way for you to listen for events that occur inside the iframe. In this case, the events are triggered:
  • zs-doc-loaded: when the PDF finishes loading on the signer's screen.
  • zs-doc-signed: when the signer successfully signs the document.
  • zs-signed-file-ready: when the final PDF is ready to download (this is when the "download signed" button is enabled for example).
Last modified 3mo ago
Copy link