API Reference
API Reference lets you build and publish a structured, public-facing API reference directly inside Hyperdocs. You define your APIs, document their endpoints, parameters, request bodies, responses, and code samples in the admin editor, then publish the result alongside your product docs, changelog, and help center β all on the same site.
How It Works
The API Reference editor lives at API Reference in your admin sidebar. It has two modes you switch between using the Edit and Preview buttons in the header:
A global Enabled / Disabled toggle in the header controls whether the API Reference tab appears on your public site. When disabled, the tab is hidden from visitors but your content is preserved in the editor.
Admin Editor Structure
The editor is organized into four sections, each accessible from the sidebar: API Definitions, Authentication, Versions, and individual Endpoints grouped under categories.
API Definitions
An API definition is the top-level container for one API. Each definition has a title and a base URL (for example, `https://api.example.com`). You can have more than one definition in a workspace β each appears as a separate selectable API in the sidebar.
Each definition card also has an API Explorer toggle. When on, a live Try It console is shown to visitors on each endpoint page, letting them send real requests from the browser.
To create a definition, click New Definition, enter a title and base URL, and save. To delete one, use the delete button on its card β at least one definition must always remain.
Authentication
The Authentication section lets you define reusable authentication methods that can be attached to individual endpoints. Two types are supported:
Add a method using the + API Key or + Bearer Token buttons. Each method has an editable name. Methods you create here become available to attach to any endpoint via the Credentials panel in the endpoint editor.
Versions
The Versions section lists the API versions for the selected definition. Each version has a name (for example, `v1.0`) and three settings you can toggle:
The active version is selected from the version dropdown at the top of the sidebar. The selected version determines which version prefix appears in endpoint URLs on the public site.
Categories and Endpoints
Endpoints are organized into categories. A category groups related endpoints under a shared name and slug, which becomes the URL path on the public site (for example, `/api-reference/users`).
To add a category, click the + button next to the Categories heading in the sidebar and enter a name. To add an endpoint inside a category, select the category and use the + button next to it.
Each endpoint has the following fields you edit in the main panel:
Endpoint Detail Sections
Each endpoint editor has additional sections in the right-hand panel for documenting the full contract of the endpoint.
Parameters
Parameters are grouped into three types: Path Parameters, Query Parameters, and Header Parameters. For each parameter you set:
Request Body
Click Add request body to attach a request body to an endpoint. The request body has a content type field (for example, `application/json`) and an example field where you enter a JSON object. The example is shown to visitors on the public endpoint page.
To remove the request body, click Remove in the section header.
Responses
Add one or more response definitions using the + Add Response button. For each response you select a status code from a picker organized by category (success, warning, error). Each response also has a content type and a JSON example that visitors can expand to read.
Response rows are color-coded by category: green for success (2xx), amber for redirects and warnings (3xx), and red for errors (4xx / 5xx).
Credentials
The Credentials panel lets you attach authentication methods to the endpoint. Click + to open a picker showing the auth methods you defined in the Authentication section. Attached methods are listed on the public endpoint page under the authentication details. Click the remove button on an attached method to detach it.
Custom Code Samples
The Custom Code Samples section lets you add language-specific code examples for the endpoint. Click + to pick a language (Shell, JavaScript, Python, PHP, Go, Java, C#, C++, PowerShell, Ruby, or Swift), then type or paste the code into the editor area. Multiple languages appear as tabs that visitors can switch between.
Public Visitor Experience
When the API Reference is enabled, it appears as a tab on your public documentation site. The public view has a left sidebar listing all categories and their endpoints. Visitors can:
Saving Changes
Changes to definitions, authentication methods, versions, and endpoint content are saved by clicking Save in the header. The Save button is context-aware:
The button label changes to Saving⦠while the request is in flight and to Saved briefly after a successful save. The public API reference cache is refreshed automatically after each save so visitor-facing pages reflect your changes immediately.
Role-Based Access
Access to the API Reference editor is controlled by your workspace role:
