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
        • Overview
        • Core options
        • Customization options
        • Language options
      • Troubleshoot SDKs
      • SDK CLI
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
  • sdkName
  • apiName
  • apiVersion
  • baseUrl
  • languages
  • auth
Postman SDK GeneratorConfigure SDK generation

Postman SDK core configuration options

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

Configure SDK generation in Postman

Next

Postman SDK customization options

Built with

The core Postman SDK options configure the basic settings, such as the location of the specification to use, the SDK languages to generate, and the authentication type to use. These options are set at the top level of the postman-sdk.config.json file.

sdkName

The sdkName is used to set the name for your SDK. This name is used for the package name for the different SDKs, it’s used to name the class that provides SDK access, and is used in the README and other documentation.

The name is re-cased to be idiomatic for the SDK language.

apiName

The name of the API. This is used to identify the API in the SDK documentation and README. If the apiName isn’t set, the API name is taken from the name in the API specification.

For Swagger and OpenAPI specs (spec.json), this is the title field in the info object.

1{
2 "openapi": "3.1.0",
3 "info": {
4 "title": "ExcitingSoda",
5 ...
6 }
7 ...
8}

For Postman Collections (postman-collection.json), this is the name field in the info object.

1{
2 "info": {
3 "name": "ExcitingSoda",
4 ...
5 }
6 ...
7}

The API name is a required field for Swagger, OpenAPI and Postman Collections, so if this isn’t set in either the config file or the specification, an error will be raised.

apiVersion

The version of the API. This is used to identify the API in Postman. If the apiVersion isn’t set, the API version is taken from the version in the API specification.

For Swagger and OpenAPI specs (spec.json), this is the version field in the info object.

1{
2 "openapi": "3.1.0",
3 "info": {
4 "title": "ExcitingSoda",
5 "version": "1.0.1"
6 ...
7 }
8 ...
9}

For Postman Collections (postman-collection.json), this is the version field in the info object.

1{
2 "info": {
3 "name": "ExcitingSoda",
4 "version": "1.0.1"
5 ...
6 }
7 ...
8}

The API name is a required field for Swagger and OpenAPI, but isn’t a required field for Postman Collections. Although this field isn’t required in the Postman SDK config file, If this isn’t set in either the config file or the specification, an error will be raised as a value for the version is required to generate an SDK.

baseUrl

The baseUrl is the URL for your API. If this isn’t set, the SDK defaults to using first value that’s found in the servers object of your API specification.

For Java SDKs, the baseUrl is also used as the group ID, unless you set the groupId language customization option. For example if you have:

1{
2 ...
3 "baseUrl": "https://exciting.soda"
4 ...
5}

Then your Java group ID will be soda.exciting:

1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6 <groupId>soda.exciting</groupId>
7 ...
8</project>

This can be accessed from the soda.exciting package:

1main/java/soda/exciting/ExcitingSoda.java
2package soda.exciting;
3
4public class ExcitingSoda {
5}

You can read more about configuring URLs and setting these at run time in the Environment management section of each language usage guide.

languages

The languages setting is an array of the languages you want to generate SDKs for.

1{
2 ...
3 "languages": [
4 "java",
5 "kotlin",
6 "python",
7 "typescript",
8 "csharp",
9 "go",
10 "php",
11 "ruby"
12 ]
13 ...
14}

Language specific customizations can be set in the languageOptions section of the config file.

auth

The postman-sdk.config.json auth setting defines the authentication your API uses. This setting is optional. If not set, the SDKs won’t include any authentication.

1{
2 ...
3 "auth": [
4 "apikey"
5 ]
6 ...
7}

Valid values are:

ValueDescription
apikeyAPI key authentication, passing an API key as a header to all API calls.
basicBasic authentication, passing a username and password in the Authentication header to all API calls.
bearerBearer token authentication, passing a bearer token in the Authentication header to all API calls, with the value prefixed with bearer.
customCustom access token authentication, passing an access token in the Authentication header to all API calls, with the value prefixed with a custom prefix.
oauthOAuth authentication allows secure token-based access to resources on behalf of a user. The client obtains an access token through an OAuth flow and then includes this token in the Authentication header of API requests.

If your API supports multiple authentication types, you can have multiple values as long as they don’t conflict. For example, both Basic authentication and Bearer token authentication use the Authentication header in your API, so you can’t have both set simultaneously.

The auth options can be customized using the authentication section of the customizations options. You can, for example, set the API key header or the access token prefix.