APIToGoAPIToGo
Visit APIToGo on LinkedIn
  • Documentation
  • Components
  • Themes
Quickstart
Configuration
Writing
Concepts
OpenAPI
Authentication
Integrations
Guides
    Static FilesEnvironment VariablesCustom pagesMermaid DiagramsMultiple APIsAPI Keys and IdentitiesNavigation RulesTransforming Operation ExamplesSchema Processors
Deployment
Extending
powered by apitogo
Guides

Multiple APIs

APIToGo supports creating documentation and API references for multiple APIs and can work with as many OpenAPI documents as you need.

In order to do this you will need to modify the APIToGo Configuration file to include additional APIs.

Configuration

Using multiple APIs is a configuration setting that you can add in the APIToGo Configuration file.

Step 1: Add your APIs

First, create a new array in your configuration file that lists each API you want to include:

Code
const apis = [ { type: "file", input: "apis/my-first-api.json", path: "/my-first-api", }, { type: "file", input: "apis/my-second-api.json", path: "/my-second-api", }, ] as const;

Step 2: Add navigation

Create a navigation array for your sidebar:

Code
const navigation = [ { type: "link", label: "My First API", to: "/my-first-api", }, { type: "link", label: "My Second API", to: "/my-second-api", }, ] as const;

Step 3: Update your config

Modify your APIToGo Configuration file to include these arrays:

Code
import type { ApitogoConfig } from "@lukoweb/apitogo"; const config: ApitogoConfig = { navigation: [ { type: "category", label: "Overview", items: navigation, }, ], redirects: [{ from: "/", to: "/overview" }], apis, docs: { files: "/pages/**/*.{md,mdx}", }, }; export default config;

Make sure that:

  1. The path in each API config matches the href in the navigation
  2. Your OpenAPI files are placed in the correct location as specified in the input field
  3. The label in navigation matches what you want to display in the sidebar

You don't necessarily need to add the APIs to your sidebar, you can also put them into the top navigation or link to them from your docs.

Last modified on March 31, 2026
Mermaid DiagramsAPI Keys and Identities
On this page
  • Configuration
    • Step 1: Add your APIs
    • Step 2: Add navigation
    • Step 3: Update your config
TypeScript
TypeScript
TypeScript