JavaScript · Integration
Add E-Signatures to Next.js
Send documents for legally binding e-signature from your Next.js application. One endpoint, no SDK required.
Quick start
- Get an API key from signb.ee (free, no credit card)
- Set
SIGNBEE_API_KEYin your environment - Add the code below to your app
Next.js example
JavaScript
// app/actions/send-contract.ts
"use server";
export async function sendContract(formData: FormData) {
const res = await fetch("https://signb.ee/api/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SIGNBEE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
content: formData.get("content"),
senderName: formData.get("senderName"),
senderEmail: formData.get("senderEmail"),
recipientName: formData.get("recipientName"),
recipientEmail: formData.get("recipientEmail"),
}),
});
return res.json();
}What happens
- Your app sends markdown or a PDF URL to Signbee
- Signbee generates a PDF (if markdown) and emails the recipient a signing link
- Recipient signs — both parties receive the signed PDF with SHA-256 certificate
Also works with AI agents
Install the MCP server to let Claude, Cursor, or Windsurf send documents directly:
npx -y signbee-mcp
Related resources
Try Signbee — free, no credit card.