--- slug: / title: Mattermost API v4 description: REST API v4 — first-class per-endpoint pages generated from the canonical OpenAPI specification. sidebar_position: 1 sidebar_label: Overview --- API Reference Every endpoint is a first-class, deep-linkable page generated directly from the canonical OpenAPI spec. Per-endpoint code samples in **curl, PowerShell, Python, Node, and Go**. ## Start here ## Common workflows ## How it's generated The canonical source is the OpenAPI specification in `mattermost/mattermost/api/v4/source/` (56 YAML fragments, one per resource). The build pipeline: ```bash node docs-site/scripts/build-openapi.mjs # bundle 56 fragments → one YAML, 435 paths, 550 ops npx docusaurus gen-api-docs all # emit ~589 MDX files (one per endpoint + tag pages) ``` When the upstream spec changes, this regenerates automatically. AI never authors API reference content — it's deterministic from the spec. ## Looking for something else? The legacy ReDoc-based reference at `developers.mattermost.com/api-documentation` is being decommissioned as part of the cutover (see PLAN.md §11.1 step 10).