Legal document automation API for court forms, contracts, and NDAs
Fill court forms, contracts, and client documents with data from your intake forms or practice management system. Clients review and sign online, and every signed PDF includes an audit trail.
- No credit card needed
- Free test PDFs
- 9.8ยข per PDF on Starter
Trusted by teams in legal, lending, insurance, and property
Legal paperwork you can automate
Legal tech platforms and law firms use DocSpring to fill court forms, client intake forms, contracts, and estate planning documents from their clients' answers. Court forms keep their official layout, and your own agreements fill from the same data.
California Judicial Council forms
Fill family law, probate, and small claims forms such as the FL-100, FL-150, FL-300, DV-100, DE-111, and SC-100 from a client's intake answers.
Federal court and agency forms
Fill federal forms such as the AO 440 summons in a civil action, and the G-28 notice of appearance before USCIS.
Client intake
Turn intake questionnaires for divorce, guardianship, name changes, and estate planning into completed forms, so clients answer each question once.
Contracts and NDAs
Generate NDAs, service agreements, and engagement letters from your templates, one at a time or in bulk.
Wills and estate planning
Fill wills, powers of attorney, and healthcare directives from the details clients enter online.
Bail bond paperwork
Fill bail bond applications, indemnity agreements, and promissory notes for each defendant and co-signer.
How it works
Send your data as JSON from your app. DocSpring checks each value against your template, fills the PDF, and returns it.
POST /api/v2/templates/{template_id}/submissions
{
"data": {
"client": {
"name": "Maya Chen"
},
"date_opened": "2026-10-20",
"matter_type": "Family law",
"referred_by": "Daniel Ortiz",
"retainer": 2500,
"contact_by": "Email",
"conflict_check": true
}
}
Legal form templates
Ready-made templates for common forms, set up and ready to fill.
Non-Disclosure Agreement (NDA)
This template allows representatives from two companies to enter into a Non-Disclosure Agreement (NDA). You can use DocSpring's...
USCIS Form G-28: Notice of Entry of Appearance as Attorney or Accredited Representative
Attorneys and accredited representatives file Form G-28 with USCIS to show they represent a client in an immigration case.
California FL-100: Petition for Dissolution of Marriage or Domestic Partnership
Use FL-100 to start a divorce, legal separation or annulment case in California, for a marriage or a domestic partnership.
AI sets up your fields
Upload a PDF form and DocSpring sets up the template for you. You review every field in the editor before you publish.
- Finds the fields on flat PDFs, not just fillable forms
- Gives each field a clear name and data type
- Adds conditional logic, required fields, and totals
Works with your code and your tools
API and SDKs
A REST API with official SDKs in ten languages, from Ruby and Python to Go and Rust.
Hosted web forms
Share a template's web form as a link or embed it on your site. Each submission fills the PDF.
E-signatures
Send documents for signature by email, or embed signing in your app. Several people can sign each document, and every signed PDF includes an audit trail.
Webhooks and integrations
Webhooks tell your app when a PDF is ready. Zapier, Make, and n8n connect DocSpring to your other apps, and every PDF can be saved to your own S3 bucket.
Security and compliance
SOC 2 Type II
Independently audited controls for security and availability.
HIPAA
HIPAA compliant, and we sign a BAA on every paid plan.
GDPR
A data processing agreement, and a full list of our subprocessors.
US or EU hosting
Choose the region your account and its documents are stored in.
Legal FAQ
Read the documentationCan DocSpring fill court forms like California Judicial Council forms?
Yes. Judicial Council forms are public PDFs. Upload the forms you need, map their fields once, and fill them from your case data. When the council revises a form, upload the new version to the same template and adjust any fields that moved.
How do I turn a client intake questionnaire into completed court forms?
Collect the answers in your own app or in a DocSpring web form, then send them to each template that needs them. One set of intake data can fill several forms, and you can combine the results into a single PDF.
Can I generate contracts and NDAs in bulk?
Yes. Upload your agreement as a PDF or a Word document, build it in the Page Designer, or write it as an HTML template, then send up to 50 documents per batch request, each with its own parties, dates, and terms.
Can clients sign documents electronically with an audit trail?
Yes, with signature requests on documents you upload as PDFs. Each signer reviews the document in a hosted or embedded form and signs it. The signed PDF includes an audit trail that records how and when each person signed, which supports compliance with the ESIGN Act and UETA. Those laws don't cover wills, divorce and other family law matters, or court filings, so check the court's or state's signing rules for those documents.
Can our legal tech platform embed the template editor?
Yes. You can embed DocSpring's template editor in your own product, so your customers set up their own forms and agreements without leaving your app. You choose which editor features they can use.
Can documents include clauses that depend on the client's answers?
Yes. In a Word or HTML template or a page design, Liquid conditions include or leave out clauses based on the data, and long agreements grow to as many pages as they need. Uploaded PDF forms can use conditional logic to show or require fields in web forms.
How is confidential client data protected?
DocSpring has completed a SOC 2 Type II audit. Submission data is encrypted at rest with AES-256, and each template can delete submission data and generated PDFs automatically after a set time. You choose US or EU data residency when you sign up.
Other industries
Upload your own legal forms
Test PDFs are free and unlimited. No credit card needed.

