For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
        • Overview
        • Create a specification
        • Import a specification
        • Edit a specification
        • Add files to a specification
        • Validate a specification
        • View live documentation
        • Reuse components
        • Generate collections
      • Sync collections and specifications reference
      • Migrate from API Builder to Spec Hub
      • Develop APIs with the API Builder
      • Simulate real-world conditions
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Create a component file
  • Edit a component file
  • Version and publish a component file
  • Reference a component in a specification
  • Sync components between collections and specifications
  • Archive components
Design and build APIsDesign APIs with specifications

Reuse specification components with the Component Library in Postman

||View as Markdown|
Was this page helpful?
Previous

View live documentation for your API specification

Next

Generate collections from your API specification

Built with

The Postman Component Library is available with Postman Enterprise plans.

With the Postman Component Library, API Governance Managers can manage reusable components for your team’s OpenAPI specifications in Spec Hub. Maintain and standardize commonly used components in a central location, without having to redefine them in each specification. Reusable components can include schemas, responses, parameters, and more. Publish a new version when you’re ready to share changes with your team, maintaining support for earlier versions. Anyone on your team can reuse published components and choose the version they’d like to reference in their specifications.

The Postman Component Library doesn’t support AsyncAPI specifications.

Create a component file

With the API Governance Manager role, you can create a component file in your team’s component library. Name the file and specify the OpenAPI specification format the components will be used in. In the file, define components that your teammates can reuse in their specifications.

  1. Click Library in the footer, then select Library icon Components.
  2. Click Add icon Add.
  3. Enter a name for the component file and select the OpenAPI specification format it’ll be used in. You can’t change the OpenAPI specification version of a component file later.
  4. Click Create.

Postman adds a new component file to your team’s component library in the OpenAPI specification format you chose. Add your own components to the file so your team can reuse them in their specifications.

Edit a component file

With the API Governance Manager role, you can add reusable components to new and existing component files. Define reusable components you’d like to standardize in your team’s specifications, making the component file the single source of truth. You can edit only the draft version of a component file.

  1. Click Library in the footer, then select Library icon Components.
  2. Click a component file in the sidebar.
  3. Make sure the version is set to Draft in the version dropdown list.
  4. Add or update reusable components in the file.
  5. Click Save.

As you edit your component file, Postman displays a live preview of your API’s documentation and identifies syntax errors. Use the editor to beautify, wrap, copy, and search content in the component file. You can’t delete component files.

The Postman Component Library

Your teammates can’t reuse components in a draft component file. Publish a version of a component file to allow your teammates to reference its components in their specifications.

Rename a component file

You can rename component files to keep your team’s component library organized and to better reflect the components defined in each file. This makes it easier for your teammates to find the components they need.

Renaming component files can result in reference resolution failures in your team’s specifications. Before renaming a component file, check where its components are referenced in your team’s specifications and update the affected reference values with the new file name after renaming the file.

To rename a component file, do the following:

  1. Click Library in the footer, then select Library icon Components.
  2. In the sidebar, select the component file you want to rename, then select Options icon View more actions > Rename.
  3. Enter a new name for the component file, then click Rename.

View live documentation

Postman displays a live preview of your API’s documentation as you edit your component file. To show the documentation preview, click Docs icon Live preview in the right sidebar.

Validate a component file

Postman identifies syntax errors as you edit your component file. Syntax errors can include missing fields, malformed field names, wrong data types, wrong nesting, or other issues.

Postman also identifies governance issues for components, but only once they’re referenced in your specification.

Version and publish a component file

With the API Governance Manager role, you can publish a version of a component file to share the latest changes to your reusable components with your team. Versioning component files is useful for publishing a new version of your reusable components, while still supporting earlier versions. You can’t edit versions once they’re published.

  1. Click Library in the footer, then select Library icon Components.
  2. Click a component file in the sidebar that you’d like to version and publish.
  3. Click Publish in the upper right corner.
  4. Enter a version number. The version number must be unique to the component file. The version number can only contain alphanumeric characters, periods, underscores, dashes, plus signs, and no spaces.
  5. Click Publish Version.

Once the component is published, your teammates can reference the file’s components in their specifications.

You can’t delete published versions of component files. To publish a new version of your component, select Draft in the version dropdown list. Edit the component file and then publish a new version.

Reference a component in a specification

With the Developer role, you can reference reusable components in your OpenAPI specifications using the URL to the component and its version. An API Governance Manager must publish a version of a component file before you can reference its components in your specification.

  1. Click Library in the footer, then select Library icon Components.
  2. Search for a component file and select it in the sidebar.
  3. Choose a published version of the component file using the version dropdown list.
  4. In the sidebar, click Link icon Copy link next to a component. This copies the URL to the version of the component you select in the dropdown list.
  5. Add the URL to a reference ($ref) in your specification.

From a specification, you can also copy the URL to the latest version of a component. Click Library icon Components in the lower right of the specification. Then hover over a component and click Link icon Copy link.

As you edit your specification, Postman displays autocomplete suggestions for published components in your team’s component library. Enter a component name as the value of a reference ($ref) and select it from the suggestions list. The URL to the latest version is added as the value.

Postman identifies governance issues for components referenced in your specification. Governance issues are violations of the Postman API Governance rules configured for your team. Learn more about viewing rule violations in your specification.

The Postman CLI also supports running governance rule checks against components referenced in your specification. To learn more, see the postman spec lint command.

Sync components between collections and specifications

Consider the following behavior when syncing changes to reusable components between collections and OpenAPI specifications.

  • When you generate a collection from a specification, Postman uses referenced components from your team’s component library to populate relevant parts of the collection.
  • When you sync changes from the collection back to the specification, Postman preserves the original reference URL if the values are unchanged. If you change values in the collection that originated from a referenced component, syncing those updates causes Postman to replace the reference URL with the updated inline values.

Archive components

You can archive components that you no longer want your team to use in their specifications. Archiving a component doesn’t delete it from the component library, but instead makes it unavailable for use across your team. Any existing references to the archived component in your team’s specifications remain functional. Archived components can’t be edited and new versions can’t be published, but they can be restored to make them available for use again.

Unsaved changes to a draft component file are lost when you archive a component. To preserve the changes, save them before archiving the component.

To archive a component file, do the following:

  1. Click Library in the footer, then select Library icon Components.
  2. In the sidebar, select the component you want to archive and select Options icon View more actions > Archive.
  3. Click Archive to confirm.

To restore an archived component, select Options icon View more actions > Unarchive next to the component you want to restore in the Archived section.

Restore a reusable component