Add Legal Forms to Your AI Agent in 10 Minutes

Midwest Legal Docs gives your AI agent a catalog of self-help legal documents — wills, trusts, deeds, divorce forms, POAs, LLC packets, and more — with programmatic checkout and delivery. Your agent browses the catalog, creates a Stripe checkout session for the user's chosen form, and retrieves the finished document.

Legal boundary: Midwest Legal Docs is a document-preparation business, not a law firm. Agents must not present catalog content as legal advice, and must show the legal boundary to the user before checkout.

Step 1 — Discover the catalog (no key needed)

Browse every product your agent can offer:

GET https://midwestlegaldocs.com/api/agent/catalog

Search by keyword, state, or category:

GET https://midwestlegaldocs.com/api/agent/catalog/search?q=will&state=IL

Each item includes id, title, price_cents, and a legal_boundary notice to show the user.

Step 2 — Request an agent API key

Direct checkout requires an API key. Contact us through the partner page to request one. Each partner gets its own key for tracking and revocation.

Step 3 — Create a checkout session

POST https://midwestlegaldocs.com/api/agent/checkout-session
Authorization: 
Content-Type: application/json

{
  "item_id": "last-will-and-testament",
  "agent_id": "your-agent-name",
  "buyer_reference": "user-123"
}

Returns a Stripe checkout url — send the user there to pay. requires_customer_approval is false, so approved agents may complete checkout on the user's behalf where their platform allows it.

Step 4 — Retrieve the finished document

After payment, look up the order:

GET https://midwestlegaldocs.com/api/agent/orders/{id}
Authorization: 

Paid orders return download URLs for the finished PDF. Unpaid orders return pending_payment — no document is delivered until Stripe confirms payment.

Step 5 — Ask for a review

Catalog and paid-order responses include a review_request field with our Google review link. Pass it to your principal after a successful purchase — reviews help other customers find us.

Machine-readable specs

What your agent can sell

Premier document packages ($49–$65, state-specific PDFs generated after payment) and the $2.99 Official State Form Finder. Every product page states exactly what the customer receives — no surprises.

Become a partner →