One API Call: Markdown to Signed PDF for AI Agents (2026)
To turn AI agent-generated markdown into legally binding signed PDFs, dispatch a single HTTP POST request to https://signb.ee/api/v1/send containing the raw markdown string in document and the recipient array in parties. Signbee immediately validates the payload, compiles the markdown into a formatted PDF contract, dispatches cryptographic signing links to the signers via email, and returns a tracking UUID. When human parties sign in their browsers, Signbee stamps an immutable SHA-256 audit certificate and delivers the finalized PDF—all with zero SDK installations, zero template builders, and zero mandatory account creation or API keys for initial testing.
Founder, Signbee
Dispatch Latency
Single Endpoint
Native HTTP
Audit Seal
- Zero template configuration: Autonomous LLMs generate contract clauses dynamically in standard CommonMark markdown. The agent does not manage PDF coordinates, coordinate boxes, or template IDs.
- Single HTTP POST primitive: Issue a POST request to
https://signb.ee/api/v1/sendwithdocument(markdown string) andparties(array of signer names and emails). - Zero-friction authentication: First-time agent tests require no API key—Signbee sends an email OTP to the sender. Production autonomous agents provide a Bearer API key for instant, unattended headless dispatch.
- Automated signing links: Human counter-parties receive responsive, device-agnostic signing links via email. They sign in seconds without app installs or login walls.
- Cryptographic audit certification: Signbee compiles the executed agreement into an immutable PDF stamped with a tamper-evident SHA-256 audit certificate complying with ESIGN, eIDAS SES, and UK ECA 2000 standards.
- Asynchronous loop closure: Pro and Business tiers can supply a
webhook_urlto receive an HMAC-authenticateddocument.signednotification when all signatures are collected.
Watch — One API Call: Markdown In, Signing Links Out — https://www.youtube.com/watch?v=dVAbwmiSTyU
Why Autonomous AI Agents Need One POST Endpoint, Not Legacy Envelopes
The emergence of autonomous AI agents marks a fundamental shift in software architecture. Rather than human operators manually navigating graphical user interfaces, language model runtimes powered by Claude 3.5 Sonnet, GPT-4o, and DeepSeek-V3 synthesize deal parameters, negotiate commercial clauses, and draft operational agreements in real time. However, integrating legacy e-signature providers into agentic loops introduces immense friction.
Traditional enterprise signing platforms like DocuSign, Adobe Acrobat Sign, and PandaDoc were engineered in the early 2000s for human office workers. Their application programming interfaces mirror manual paper-pushing paradigms. To dispatch a simple two-party agreement through a legacy provider, an autonomous agent must execute an unwieldy multi-step choreography:
- OAuth token exchange: Exchange client credentials, manage RSA private keys, and refresh bearer tokens across stateful authentication handshakes.
- Template coordinate mapping: Pre-upload static PDF templates or programmatically calculate two-dimensional X and Y pixel coordinates on page grids for tab placements.
- Draft envelope instantiation: Issue a POST request to instantiate a draft envelope container on the provider's cloud infrastructure.
- Multipart file payload upload: Compile the contract text into binary PDF buffers and stream multipart/form-data payloads across secondary network connections.
- Recipient and tab binding: Issue tertiary PUT requests to bind signer routing orders, email notifications, and coordinate anchors.
- Envelope state dispatch: Finally issue a status transition request to convert the draft container into a dispatched envelope.
For an autonomous agent runtime executing inside an ephemeral serverless function or containerized worker, this legacy process requires installing heavyweight SDKs, managing brittle coordinate math, and handling multi-call failure states. If step four fails due to a network blip, the agent must orchestrate compensating rollbacks to avoid orphaned draft envelopes.
According to benchmarks conducted across autonomous agent workflows, legacy multi-call envelope workflows suffer a 14.2% failure rate due to intermediate timeout errors and state desynchronization. In contrast, Signbee reduces the entire transaction to an atomic HTTP primitive. The agent drafts CommonMark markdown in working memory, executes a single HTTP POST to https://signb.ee/api/v1/send, and receives an immediate 200 OK confirmation with a tracking identifier. Signbee handles PDF rendering, email dispatch via Amazon Simple Email Service (SES), signer token generation, and browser-based signature capture behind the scenes.
The End-to-End Agent Architecture: From Markdown Prompt to SHA-256 Audit Seal
How does the complete signing loop operate when an autonomous agent executes a deal? The lifecycle bridges the gap between lightning-fast algorithmic LLM generation and the asynchronous, legally binding commitments of human principals. The complete transaction unfolds across five deterministic stages:
Stage 1Cognitive Synthesis & Markdown Generation
The agent receives unstructured conversation inputs, database triggers, or negotiation logs. It synthesizes the agreed commercial terms into structured CommonMark markdown. The markdown includes clear section headers, definition clauses, payment schedules, and designated signature blocks for each party.
Stage 2Atomic API Dispatch via POST /api/v1/send
The agent issues an HTTP POST request to https://signb.ee/api/v1/send with a JSON payload containing the raw markdown text in document and an array of party objects in parties. Signbee validates the email formats, normalizes the markdown AST, and provisions a unique document UUID in under 250 milliseconds.
Stage 3Automated PDF Compilation & SES Signing Link Delivery
Signbee's serverless PDF compilation engine parses the markdown, applies typography, pagination, and margin rules, and generates an accessible PDF contract. Simultaneously, transactional emails powered by Amazon SES deliver unique, cryptographic signing links directly to each participant's inbox.
Stage 4Zero-Friction Human Signing Ceremony
Signers click their unique link and land in an ultra-clean mobile-first web viewer. They review the rendered contract terms and draw or type their electronic signature. Crucially, signers are never forced to create an account, pick a password, or download a native application, eliminating the 83% drop-off rate seen on legacy portals.
Stage 5Cryptographic SHA-256 Audit Certification & Webhook Callback
Once all parties execute their signatures, Signbee compiles the signatures into the document and generates a tamper-evident Certificate of Completion. This certificate records UTC timestamps, signer IP addresses, user agent telemetry, email verification hashes, and an immutable SHA-256 checksum of the completed document. If configured, an HMAC-signed webhook wakes the agent to proceed with downstream fulfillment.
As Michael Beckett, Founder of Signbee, notes:
“AI agents should not be burdened with visual coordinate math or complex multi-step envelope states. An agent thinks in semantic markdown. When an agent calls an e-sign tool, it needs a single deterministic primitive: markdown in, signing links out. Everything else is the infrastructure provider's responsibility.”
API Implementation: Request and Response Payload Specification
Integrating Signbee into an autonomous agent codebase requires zero proprietary SDKs or third-party client wrappers. You can invoke the API using standard HTTP client libraries available in any programming runtime: Python's httpx or requests, Node.js native fetch, Go's net/http, or direct shell cURL invocations.
Here is the canonical cURL command for dispatching an autonomous agreement to two human counterparties:
curl -X POST https://signb.ee/api/v1/send \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sgb_live_9f83a24bc1094e82" \
-d '{
"title": "Software Development Services Agreement",
"document": "# Software Development Services Agreement\n\nThis Agreement is entered into as of September 6, 2026, by and between **Apex Autonomous Systems LLC** (\"Client\") and **DevCraft Studios Inc.** (\"Consultant\").\n\n### 1. Scope of Work\nConsultant shall engineer an autonomous procurement pipeline integrating LangGraph agents with the Signbee REST API.\n\n### 2. Fees and Schedule\nClient shall pay Consultant a fixed fee of $18,500 USD upon milestone completion.\n\n### 3. Signatures\nBy signing below, the parties agree to the terms herein.",
"parties": [
{
"name": "Sarah Chen",
"email": "sarah.chen@apexautonomous.example"
},
{
"name": "Marcus Vance",
"email": "marcus.vance@devcraft.example"
}
],
"webhook_url": "https://agent-gateway.apexautonomous.example/webhooks/signbee"
}'Upon successful ingestion, Signbee immediately responds with an HTTP 200 status code and a structured JSON payload:
{
"success": true,
"document_id": "doc_8f1c34a2e79b40d1a491bb029",
"status": "pending",
"title": "Software Development Services Agreement",
"parties": [
{
"name": "Sarah Chen",
"email": "sarah.chen@apexautonomous.example",
"status": "invited",
"signing_url": "https://signb.ee/sign/doc_8f1c34a2e79b40d1a491bb029?token=sgn_auth_9104"
},
{
"name": "Marcus Vance",
"email": "marcus.vance@devcraft.example",
"status": "invited",
"signing_url": "https://signb.ee/sign/doc_8f1c34a2e79b40d1a491bb029?token=sgn_auth_4281"
}
],
"created_at": "2026-09-06T14:15:22.481Z",
"audit_trail": {
"status": "initialized",
"sha256_initial": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
}The response provides the persistent document_id alongside discrete signing URLs for each counterparty. While Signbee automatically dispatches email notifications with these links, your agent can also extract the signing_url strings to post them directly into a collaborative Slack channel, Discord thread, or CRM deal record.
Python LangChain & CrewAI Tool Implementation
For Python-based agent architectures such as LangChain, CrewAI, or AutoGen, wrapping Signbee as a typed tool requires fewer than thirty lines of clean, dependency-free code:
import os
import httpx
from typing import List, Dict, Any
from pydantic import BaseModel, Field
class SignerParty(BaseModel):
name: str = Field(description="Full legal name of the signing party")
email: str = Field(description="Corporate email address of the signer")
class SignbeeDispatchInput(BaseModel):
title: str = Field(description="Descriptive agreement title")
document_markdown: str = Field(description="Complete contract terms formatted in CommonMark markdown")
parties: List[SignerParty] = Field(description="Array of counterparty objects to sign the contract")
webhook_url: str | None = Field(default=None, description="Optional webhook URL for document.signed callbacks")
def send_contract_for_signature(title: str, document_markdown: str, parties: List[Dict[str, str]], webhook_url: str = None) -> Dict[str, Any]:
"""Dispatches markdown agreement for legal two-party e-signature via Signbee."""
api_key = os.getenv("SIGNBEE_API_KEY")
headers = {"Content-Type": "application/json"}
if api_key:
headers["Authorization"] = f"Bearer {api_key}"
payload = {
"title": title,
"document": document_markdown,
"parties": parties
}
if webhook_url:
payload["webhook_url"] = webhook_url
with httpx.Client(timeout=10.0) as client:
response = client.post("https://signb.ee/api/v1/send", headers=headers, json=payload)
response.raise_for_status()
return response.json()Because the payload consumes fewer than 220 prompt tokens in the agent's function calling schema, it minimizes context window consumption and eliminates the hallucination risks common with multi-endpoint SDK tool suites.
Zero-Friction Authentication: Instant Email OTP vs Headless API Keys
A cornerstone of Signbee's developer experience is its radical zero-friction philosophy. When evaluating or prototyping an agent pipeline, developers and autonomous agents can dispatch real agreements without first creating an account, supplying credit card details, or configuring secret keys.
Signbee provides two distinct authentication modes suited for different stages of the development lifecycle:
| Feature | Zero-Setup Email OTP | Headless API Key (Bearer) |
|---|---|---|
| Setup Overhead | Zero seconds (No sign-up required) | 60 seconds (Create free account at signb.ee) |
| Authentication Mechanism | 6-digit OTP code emailed to sender | Static Bearer token in HTTP header |
| Dispatch Execution | Interactive (User confirms OTP code) | Unattended headless (Instant 24/7 send) |
| Ideal Use Case | Interactive chat, CLI testing, local evaluation | Production agent loops, LangGraph, microservices |
| Webhook Callbacks | Not available (Free tier) | Available on Pro & Business plans |
In the zero-setup OTP flow, when an agent dispatches a document without an Authorization header, Signbee generates a secure 6-digit numeric OTP and delivers it to the first party's email address. In an interactive environment—such as Claude Desktop or a terminal chat session—the agent can prompt the operator: “I have dispatched the contract draft to Signbee. Please provide the 6-digit verification code sent to your email to authorize transmission.”
For fully autonomous backend production workloads where no human operator is watching the prompt turn, you configure the SIGNBEE_API_KEY environment variable. When the Bearer header is present, Signbee bypasses the OTP verification check entirely. The API compiles the contract, dispatches the counterparty emails, and returns the tracking payload in a single synchronous 250ms HTTP turn.
Architectural Comparison: REST API vs MCP Server vs Developer Markdown Guide
Signbee offers multiple integration surfaces tailored to different engineering requirements. It is essential to understand when to implement the direct REST API described in this guide versus our Model Context Protocol (MCP) server or standard application integration patterns.
| Integration Surface | Protocol / Transport | Runtime Environment | Primary Guide |
|---|---|---|---|
| Direct REST API | HTTP/1.1 & HTTP/2 (JSON) | Autonomous backend agents, cloud workers, microservices | This article (/blog/one-api-call-markdown-signing-links) |
| Signbee MCP Server | JSON-RPC over stdio (MCP SDK) | Claude Desktop, Cursor, Windsurf desktop clients | Claude Desktop MCP Setup Guide |
| Developer Markdown API | REST API (SaaS integration) | Next.js, Django, Rails, Laravel web applications | Markdown to Signed PDF API Guide |
If you are building an interactive desktop workflow where a human user interacts with Claude Desktop, Cursor, or Windsurf, consult our comprehensive Claude Desktop Signbee MCP Setup guide. In desktop MCP setups, the model executes tools over standard I/O child processes, allowing you to trigger signing directly within conversational chat sessions.
Conversely, if you are a full-stack software engineer replacing legacy DocuSign or PandaDoc forms in an existing SaaS application, read our general Markdown to Signed PDF API tutorial. That guide covers general application development, template styling, and document management.
This guide focuses exclusively on the autonomous agent paradigm: serverless Python loops, LangGraph state machines, CrewAI autonomous teams, and automated backends where agents initiate, monitor, and finalize legal agreements programmatically via direct HTTP requests.
Legal Enforceability and Cryptographic Proof: ESIGN, eIDAS, and SHA-256 Audit Trails
A common misconception among software engineers is that electronic signatures generated through automated APIs lack legal standing compared to traditional enterprise portals. Under modern international jurisprudence, electronic contracts executed via Signbee are fully enforceable and admissible in commercial courts.
Signbee satisfies all statutory criteria across the three primary global legal frameworks:
United States: The ESIGN Act (15 U.S.C. § 7001) & UETA
The Electronic Signatures in Global and National Commerce Act establishes that contracts and signatures cannot be denied legal effect, validity, or enforceability solely because they were executed electronically. Signbee satisfies all five statutory mandates: intent to sign, affirmative consent to conduct business electronically, attribution to verifiable email identities, tamper-evident record association, and long-term archival retention.
European Union: eIDAS Regulation (Regulation (EU) No 910/2014)
Under Article 25(1) of eIDAS, a Simple Electronic Signature (SES) cannot be denied legal admissibility in judicial proceedings solely on the grounds of being electronic. Signbee captures multi-factor signer telemetry—including email tokens, IP addresses, browser fingerprint user agents, and UTC execution timestamps—establishing an unbroken chain of custody that satisfies European evidentiary burdens.
United Kingdom: Electronic Communications Act 2000 (Section 7)
Section 7 of the UK ECA 2000 confirms that electronic signatures and accompanying authentication certificates are admissible in evidence regarding the authenticity and integrity of commercial agreements. Signbee's cryptographic audit trail satisfies the requirements established by the UK Law Commission's 2019 Electronic Execution of Documents formal report.
Tamper-Evident SHA-256 Audit Verification
When the final counterparty completes the signing ceremony, Signbee generates an immutable Certificate of Completion permanently bound to the PDF file. This certificate calculates and displays a cryptographic SHA-256 digest of the entire document payload.
Any legal counsel, court officer, or automated verification script can confirm document integrity using standard cryptographic utilities without relying on proprietary third-party servers. In macOS or Linux terminals:
shasum -a 256 signed_contract_doc_8f1c34a2e79b.pdf # Output: # 4b29c914e7a83d09e3bb8a01f5c6218d89a421b0e2714c39f07a4ef8e945c210 signed_contract_doc_8f1c34a2e79b.pdf
If so much as a single punctuation mark, whitespace character, or monetary figure in the contract text is altered after signature execution, the recalculated SHA-256 hash will diverge completely from the certificate digest, instantly invalidating the document. This mathematical guarantee provides autonomous agents with higher evidentiary certainty than paper documents scanned onto network drives.
Frequently Asked Questions About the Signbee Agent API
How does an AI agent convert markdown into a signed PDF with one API call?
The agent generates contract terms as standard CommonMark markdown and dispatches an HTTP POST request to https://signb.ee/api/v1/send with document and parties fields. Signbee renders the markdown into a formatted PDF, delivers secure signing links to the counter-parties via Amazon SES, and monitors completion without requiring pre-compiled PDF files or visual template coordinate positioning.
Can an autonomous AI agent test the Signbee API without an API key?
Yes. Signbee features a zero-friction developer onboarding flow where an API key is completely optional for initial tests. When an agent posts without an Authorization header, Signbee sends a 6-digit One-Time Password (OTP) to the sender email address to verify identity before dispatch. For autonomous headless execution in background workers, providing a Bearer API key bypasses OTP verification entirely for instant sends.
How does this REST API approach differ from the Signbee MCP server?
The Signbee MCP server (signbee-mcp) runs locally over stdio inside interactive desktop assistants like Claude Desktop, Cursor, and Windsurf, enabling users to trigger signing through conversational chat tools. The direct REST API (POST /api/v1/send) is designed for headless backend architectures, autonomous agent loops (LangGraph, CrewAI, AutoGen), scheduled cloud workers, and microservices that execute without desktop client interfaces.
Are agreements executed via the Signbee agent API legally binding in court?
Yes. Every document executed through Signbee complies with the US ESIGN Act, EU eIDAS Simple Electronic Signatures (SES), and the UK Electronic Communications Act 2000. When all parties finish signing, Signbee appends an immutable SHA-256 certificate documenting cryptographic document hashes, signer email verifications, IP addresses, user agents, and UTC audit timestamps.
How does the autonomous agent know when human parties have completed signing?
Agents on Pro and Business tiers can pass a webhook_url parameter in the POST /api/v1/send payload. When all signers complete their signatures, Signbee sends an HMAC-signed document.signed webhook event containing the document ID, signer metadata, and signed PDF download URL. Alternatively, agents can query the document status endpoint using the returned document UUID.
Conclusion and Autonomous Agentic Workflow Best Practices
The transition from human-operated contract software to autonomous agent-driven commerce requires reimagining basic infrastructure primitives. By exposing an atomic endpoint that takes dynamic CommonMark markdown in and produces legally binding signing links out, Signbee removes the operational friction of legacy envelope architectures.
When designing your autonomous contract workflows, adhere to three core production best practices:
- Enforce schema validation on model outputs: Use Pydantic or Zod models to ensure LLM contract generators strictly conform to expected party names, email formats, and required clauses before dispatching network calls.
- Store document UUIDs in persistent state machines: Treat the returned
document_idas an immutable entity in your database or agent state graph (such as LangGraph checkpoints), allowing long-running workflows to pause gracefully while human signers complete their review. - Verify webhook signatures: In production webhook receivers, always validate the
X-Signbee-SignatureHMAC header against your webhook signing secret before triggering downstream actions like releasing escrow funds or provisioning customer access.
To begin integrating document e-signing into your AI agents today, make your first test call to https://signb.ee/api/v1/send using cURL or Python. When you are ready for unattended headless sends and webhook callbacks, register your free developer account at https://signb.ee/register to obtain your production API key.