import type { Metadata } from 'next' import { DocsLayout } from '@/components/docs/DocsLayout' import { DocsMarkdown } from '@/lib/docs/markdown' import { DOCS_NAV } from '@/lib/docs/nav' import { LANDING_MD } from '@/lib/docs/content/landing' import Link from 'next/link' export const metadata: Metadata = { title: 'accounted API · Documentation', description: 'Swedish double-entry bookkeeping as a public REST API for agents and integrations.', } export default function DocsApiLandingPage() { // Highlight the cookbook + reference grids on the landing page itself, // Stripe-style cards. The markdown body provides the prose context; // the cards below give visual scannability. const cookbooks = DOCS_NAV.find((s) => s.label === 'Cookbooks')?.links ?? [] const reference = DOCS_NAV.find((s) => s.label === 'API reference')?.links?.slice(0, 8) ?? [] return (

Cookbooks

End-to-end recipes for the most common integrations. Copy-paste ready, tested against the sandbox.

{cookbooks.map((c) => (
{c.label}
{c.summary && (
{c.summary}
)} ))}

API reference

Every endpoint, grouped by resource. Auto-generated from the same Zod registry that powers the OpenAPI spec, MCP tools, and runtime validators.

{reference.map((r) => ( {r.label} ))} See all →
) }