Postman SDK language-specific options
Postman SDKs include built-in analytics capabilities that help you monitor and observe API interactions in your applications. They use industry-standard OpenTelemetry (OTLP) for distributed tracing, providing deep insights into HTTP requests, responses, and errors.
typescript
These options are specific to the TypeScript SDKs.
Options
Set the scope for the npm package name.
Set the name for the npm package.
Set the HTTP client for the SDK. Choose between Axios, Fetch, or the Node HTTPS module, depending on your preference or requirements.
Set to true configures the TypeScript SDK so that it can be bundled using tsup. This is required if you want to use the SDK in a browser environment, and it can also be used in Node.js environments. When set to true, the generated SDK will include a bundle script in the package.json file that uses tsup to create a bundled version of the SDK.
Determine whether to export the main SDK class as the default export. By default, the main SDK class is exported as a named export. Setting exportClassDefault to true changes this behavior so that the main SDK class is exported as the default export, which can simplify imports in some cases.
java
These options are specific to the Java SDKs.
Options
Set the group ID for the Java package. This is set as the groupId in the pom.xml file, as well as being used to define the namespace for the SDK classes.
Set the artifact ID for the Java package. This is set as the artifactId in the pom.xml file, as well as being used to define the name of the main SDK class.
Set the developers for the Java package. This is set as the developers in the pom.xml file, as well as being used to define the developers of the SDK. The options for each developer are name, email, organization, and organizationUrl. The organizationUrl can be used to link to the developer’s organization, such as a GitHub profile or company website.
python
These options are specific to the Python SDKs.
Options
Set the name of the PyPI package to publish to. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI.
Set the version of the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI.
Set the description of the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI.
Set the path to the README file for the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI. This should be a path to a file that contains the long description of the package, which is typically the README file. The content of this file is used as the long description on the PyPI package page.
Set the Python version requirement for the package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI. This should be a string that specifies the minimum Python version required, such as >=3.8.
Set the license for the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI. This should be a string that specifies the license for the package, such as license = {text = "MIT"}, license = {text = "Apache-2.0"}, or license = {text = "GPL-3.0"}. This information is important for users of the SDK to understand the terms under which they can use and distribute the package.
Set the authors for the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI. Each author should have a name and email, which are used to define the authors of the package on PyPI.
Set the keywords for the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI. Keywords are used to help users find the package on PyPI when searching for related topics.
Set the classifiers for the Python package. This is set in the pyproject.toml file, and is used when publishing the SDK to PyPI. Classifiers are used to provide metadata about the package, such as the intended audience, license, programming language, and more. This information helps users understand the compatibility and purpose of the package.
analytics
You can customize the analytics behavior to match your observability requirements using the following parameters:
Options
OTLP endpoint URL for trace data.
The 'otlp-http' or 'console' exporter type.
Custom HTTP headers for authentication.
Maximum spans per batch.
Delay between batch exports (milliseconds).
Timeout for export operations (milliseconds).