Python · Integration
Add E-Signatures to FastAPI
Send documents for legally binding e-signature from your FastAPI 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
FastAPI example
Python
from fastapi import FastAPI
from pydantic import BaseModel
import httpx
app = FastAPI()
class ContractRequest(BaseModel):
content: str
senderName: str
senderEmail: str
recipientName: str
recipientEmail: str
@app.post("/send-contract")
async def send_contract(req: ContractRequest):
async with httpx.AsyncClient() as client:
response = await client.post(
"https://signb.ee/api/send",
headers={"Authorization": f"Bearer {SIGNBEE_API_KEY}"},
json=req.dict(),
)
return response.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.