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
      • Generate SDKs
      • Troubleshoot SDKs
      • SDK CLI
        • Overview
        • Generate an SDK with custom code
        • Automate SDK updates
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
  • Basic SDK generation
  • Custom code integration
  • Automated workflows
  • Best practices
Postman SDK GeneratorExamples

SDK generator examples

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

SDK CLI commands

Next

Generate an SDK with custom code using the Postman CLI

Built with

The Postman SDK Generator transforms your Postman Collections into client SDKs for nine programming languages. Generate type-safe client libraries with automatic method generation, intelligent type inference, and comprehensive documentation directly from your API specifications. These examples show practical implementation patterns, customization techniques, and advanced use cases to help you build production-ready SDKs with preserved custom code.

Basic SDK generation

Learn the fundamentals of generating SDKs from Postman Collections and API specifications:

  • Setting up the CLI environment — Install and configure the Postman CLI
  • Running your first SDK generation — Generate your first SDK from a collection
  • Understanding the generated code structure — Learn how to use and integrate generated SDKs
  • Basic configuration options — Configure SDK generation settings

Custom code integration

Add custom logic, validation, and utilities while maintaining changes through regenerations:

  • Generate an SDK with custom code — Add custom logic, validation, and utilities while maintaining changes through regenerations

Automated workflows

Integrate SDK generation into your development workflow with automated updates and CI/CD pipelines:

  • Automate SDK updates with Postman and GitHub — Connect your SDKs to GitHub repositories for automatic pull requests when collections change

Best practices

To get the most out of the Postman SDK generator, follow these best practices when designing your API collections and configuring your SDK generation:

  • Use descriptive names for requests and folders.
  • Add comprehensive examples with realistic data.
  • Include detailed descriptions for auto-generated documentation.
  • Organize endpoints into logical service groups.

To maintain custom code across regenerations, follow these guidelines:

  • Keep custom code focused and well-documented.
  • Use consistent patterns across service modules.
  • Implement proper error handling for edge cases.
  • Add logging for debugging and monitoring.

To manage SDK versions and updates effectively, consider the following strategies:

  • Tag collection versions before major SDK updates.
  • Test SDK regeneration in development environments.
  • Maintain backwards compatibility when possible.
  • Document breaking changes and migration guides.