Skip to main content

Redocly Multi-API Aggregation: A Practical Setup Guide

How Redocly brings several APIs into one portal without merging the specs.

Updated 5 min readMarkdown

Quick answer: Redocly aggregates multiple APIs by keeping every OpenAPI description as its own source and surfacing them through one portal, navigation, and catalog. It does not merge your specs into a single document, so you connect the sources in config and then decide how readers move between them.

Aggregation is not merging

In a Redocly portal, each service keeps its own OpenAPI file, version, and owning team. The portal adds a layer on top: shared navigation, a searchable catalog, and a consistent theme. Nothing rewrites the descriptions into one giant document.

That distinction matters because the two approaches fail differently. A merged spec forces unrelated services into one release cycle and creates edit conflicts. An aggregated portal accepts that the services are independent and only standardizes how they are presented.

Question Merged single spec Aggregated portal
Source of truth One hand-joined document One file per service
Release cadence All services move together Each service versions alone
Ownership Shared, easy to block on Stays with the service team
Reader experience One long reference Separate references plus catalog
Typical use Truly one API surface Microservices portfolios

Where each API gets declared

Redocly uses different files by layer, and names have changed across product generations. The local CLI and the hosted portal are configured separately.

Layer File or block What it controls
Local CLI and CI apis in redocly.yaml Each API root plus per-API lint rules
Redoc project sidebars.yaml Groups and pages, including remote content
Legacy portal oasDefinitions and .page.yaml Named definitions with a unique definitionId
Catalog API metadata Filters for lifecycle, status, and team

In the CLI, an entry such as public@v2 points at a root file and nests rules that apply only to that API, which keeps linting honest across services with different standards. The portal handles display; the CLI decides whether each description is valid.

Connecting a multi-repo portfolio

Services usually live in separate repositories, so the portal needs a way to reach each one without hand-copying files. The API registry and the newer remote-content feature both solve this, and the registry tracks where every definition is used.

  1. Publish each service's bundled description to the API registry from its own CI.
  2. Add those registry sources, or remote repository content, to the portal project.
  3. Declare each API with a unique name so references resolve without collisions.
  4. Build navigation in sidebars.yaml or .page.yaml, grouping by domain rather than repo.
  5. Add catalog metadata such as lifecycle stage and owning team.
  6. Push a change in one service and confirm it versions without touching the others.

When a service updates its production branch, the registry rebuilds that definition and the portal picks up the new bundle. Because usage is recorded, you can see which pages depend on an API before you change it.

Limits worth stating first

Multi-API support sits above the single-API starter docs, and the filterable catalog is listed on the Scale and Enterprise plans. Confirm current plan boundaries before promising a catalog to readers.

Aggregation also does not remove duplicated schema. If ten services define the same address object, one portal does not fix that; sharing components through $ref is a separate decision with its own coupling cost. And a documented cross-API sequence is not a distributed transaction, since the portal can describe chained calls but gives no rollback across services.

If you are still validating one service at a time before a portal rollout, a desktop tool such as Powerduck lets you review the local Git diff and run scenario tests against a single API without standing up the catalog. For more on how the tools line up, see the comparison hub.

Frequently asked questions

Does Redocly merge my OpenAPI files into one? No. Each API stays a separate source, and the portal presents them through shared navigation and a catalog. Merge only when you genuinely want one API surface.

Can the APIs live in separate Git repositories? Yes. Connect each repository through the API registry or remote content, then declare the API. A change in one repo rebuilds only that definition.

How do readers find the right API? Through catalog metadata and navigation. Set lifecycle stage, status, and owning team on each API so the catalog can filter and search instead of presenting a flat list.

The bottom line

Treat multi-API aggregation as a navigation and ownership problem, not a spec-merge problem. Keep each service's description independent, automate the registry links so updates flow on their own, and reserve merging for components that are genuinely shared. Start by merging everything and you will spend the rollout untangling release cycles an aggregated portal would have left alone.

No comments yet. Be the first to comment.