The AgentLine documentation site, built with Mintlify.
- Docs site is served by Mintlify on push to
mainonce the repo is connected in the Mintlify dashboard. - API Reference is auto-generated from
openapi.json(the same curated spec the SDKs are generated from), so docs, SDKs, and API always agree.
docs.json # Site config (navigation, theme, API settings)
openapi.json # Curated OpenAPI spec → powers the API Reference tab
introduction.mdx # Landing page
quickstart.mdx # Get started
authentication.mdx # Auth
guides/*.mdx # Conceptual guides
sdk/*.mdx # SDK usage (Python, Node)
AGENTS.md # Instructions for the Mintlify AI agent + your AI tools
docs.json is the single source of truth for the site. It declares:
- branding (
name,colors.primary,theme), - a Documentation tab (hand-written MDX pages in
navigation.groups), - an API Reference tab declared as
{ "tab": "API Reference", "openapi": "openapi.json" }. Mintlify readsopenapi.json, groups endpoints by their OpenAPItags(Agents, Numbers, Calls, …), and builds an interactive, try-it-now API reference automatically.
You do not hand-write the API Reference pages — they regenerate from the spec whenever it changes.
npm install -g mint # one-time: install the Mintlify CLI
mint dev # live preview at http://localhost:3000mint dev hot-reloads MDX and docs.json. Use it to preview before pushing.
.github/workflows/docs-check.yml runs on every PR:
mint validate— checksdocs.json+ the OpenAPI spec for errors.mint broken-links— checks every internal link resolves.
The same workflow refreshes openapi.json daily from the
agentline-sdks repo (the source of truth) and commits any change — which
triggers a docs redeploy.
- Go to https://dashboard.mintlify.com → Add project → connect this GitHub repo.
- Set the deployment branch to
main. Mintlify deploys on every push. - (Optional) Add a custom domain (e.g.
docs.agentline.cloud) in the dashboard.
No build command is needed — Mintlify builds and hosts the site for you.
-
Create an MDX file, e.g.
guides/billing.mdx, with frontmatter:--- title: Billing description: Manage your balance and view spending. --- # Billing ...
-
Add the file (without extension) to
docs.json→navigation→ the right group:{ "group": "Guides", "pages": ["guides/agents", "guides/billing"] } -
mint devto preview, then push. The PR checks validate it.
Edit the navigation arrays in docs.json. The sidebar follows that order.
Tabs (navigation.tabs) give you top-level sections; groups are sidebar
headers.
MDX supports Mintlify components: <Note>, <Warning>, <Tip>,
<CodeGroup>, <Steps>, <Card>, <Accordion>, <Tabs>, <ParamField>,
<ResponseField>, Mermaid diagrams, etc. See
https://www.mintlify.com/docs/components.
The API Reference is never edited by hand — it comes from openapi.json. To
expose, hide, or rename an endpoint, change the source of truth: the
SDK_SURFACE map in
agentline-sdks/scripts/export_openapi.py.
The daily CI job pulls the refreshed spec into this repo, and Mintlify
regenerates the pages.
Mintlify ships an AI agent (dashboard + AGENTS.md). Open the editor in the
dashboard and ask it to “add a guide on voice presets” — it drafts a PR you
review. The AGENTS.md in this repo gives it house-style rules.
Edit docs.json:
name— site/product namecolors.primary— brand color (hex)theme—mint(or others)appearance.logo— addimages/logo.svgand reference itfooter.links— footer links