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
        • Postman Echo service
        • Postman Collection SDK
        • Postman Runtime library
        • Postman code generator
        • API format conversion
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
  • Accessing the Collection SDK
  • Next steps
ReferenceDeveloper resources

Create and manage collections using the Collection SDK

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

Test requests in Postman using the Echo API

Next

Configure request and collection runs using the Postman Runtime library

Built with

The Collection SDK is a Node.js module that enables you to work with Postman Collections and build them dynamically into your API project pipeline.

With the Collection SDK, you can create and manipulate, and export collections. You can then run them with the Postman CLI.

Accessing the Collection SDK

The Collection SDK is an open-source project. Visit the repo for more detail on using the module in your own projects. The SDK documentation provides an overview of the available objects and methods within the SDK, and an intro to the related concepts.

You can install the SDK from npm or directly from the repo. The following excerpt demonstrates using the SDK to read a file and parse it into a collection object in JavaScript:

1var fs = require('fs'),
2 Collection = require('postman-collection').Collection,
3 myCollection;
4
5myCollection = new Collection(JSON.parse
6 (fs.readFileSync('sample-collection.json').toString()));
7
8console.log(myCollection.toJSON());

The Collection SDK provides an interface for working with the data structures defined by the Postman Collection Schema. You can use the SDK methods to create and manipulate collection elements, define request detail, variables, and authentication.

Get started with the Collection SDK from the project repo, installing it and using the methods to build collections in a way that suits your development or testing project. You can also fork and contribute to the project, or create issues for any problems or feature requests.

Next steps

If you’re working with the Collection SDK to automate part of your collection run workflow, you can integrate your Collection SDK development with the Postman CLI. To learn more about integrating your Collection SDK development with the Postman CLI, visit Explore Postman’s command-line companion.