Quickstart
Make your first API call in under five minutes. You'll need an API key from the dashboard.
Install the SDK
bun add @acme/sdk
Test keys start with sk_test_ and never move real money.
Margin is open source, under Apache 2.0.
Mintlify compatible, and free for good.
Margin turns a folder of Markdown and MDX into a fast, searchable docs site. It reads your existing docs.json, so you can leave Mintlify without rewriting a page.
Make your first API call in under five minutes. You'll need an API key from the dashboard.
bun add @acme/sdk
Test keys start with sk_test_ and never move real money.
1Margin reads docs.json the way Mintlify does, and skips any field it doesn't recognise instead of failing the build.
Create a customer, bill them, and listen for payment.
const invoice = await acme.invoices.create({ customer: "cus_8fK2", amount: 4200, currency: "usd", });
Send an idempotency key so a retry never bills twice.
The same URL serves HTML to people and Markdown to agents that ask for it. llms.txt indexes every page, and /mcp answers search_docs and read_page.
Make your first API call in under five minutes.
Install the SDKNoteTest keys start with sk_test_