Create an API in Postman

To start using the API Builder, you can create a new API in your workspace. You can also upgrade, rename, or delete existing APIs.

You must be signed in to your Postman account to create an API.

Creating an API

  1. Select APIs in the sidebar and select +.

    Create a new API
  2. Enter a name for your new API.

  3. Select an option for creating your API:

    • Connect to a Git repository and import your API definitions and collections into Postman. Learn more about API version control.
    • Continue without a repository.
  4. To start working with your new API:

Postman supports OpenAPI (versions 1.0, 2.0, 3.0, and 3.1), RAML (0.8 and 1.0), protobuf (protocol buffer) (2.0 and 3.0), GraphQL, or WSDL (1.0 and 2.0) definitions. OpenAPI definitions can be JSON or YAML. RAML definitions must be YAML. Protobuf definitions are .proto files. GraphQL definitions can be JSON or GraphQL SDL. WSDL definitions must be XML.

Upgrading an API

Postman recommends upgrading your APIs to the latest format. The Postman v9 API format has been deprecated. If you have v9 APIs, you can upgrade them to the v10 format. After upgrading, you can continue working with your APIs in Postman. In the future, all APIs that are still in v9 format will be automatically upgraded to v10.

The Postman API v9 endpoints have also been deprecated. Any workflows that use the v9 endpoints will no longer work with an API that's been upgraded to the v10 format. Instead, use the new Postman API v10 endpoints for your workflows.

Postman v10 can display APIs created in prior versions of Postman. To work with the API in Postman v10, you need to upgrade the API to the new v10 format. You'll be prompted to upgrade the API when you make changes to it, for example, adding a collection, adding a definition, or connecting to a Git repository. Select Upgrade this API to complete the upgrade.

Upgrading an API to v10

There are some differences in the way API versions work in Postman v10 compared to v9:

  • In Postman v9, versions were major iterations of your API you could work on at the same time. In Postman v10, published versions are static representations of your API that consumers can reference (like releases in Postman v9).
  • If you need to work on more than one major iteration of your API in Postman v10, create separate APIs.
  • If an API created in Postman v9 had multiple versions, each version will appear as a separate API in Postman v10. For example, if you had an API named sample-api with two versions v1 and v2, they would appear as sample-api:v1 and sample-api:v2.

Renaming an API

To change the name of an API, select APIs in the sidebar. Select the more actions icon More actions icon next to an API and select Rename. You can also select the API name in the overview tab and enter a new name.

Deleting an API

You must have the Admin role for an API or the Workspace Admin role to delete an API.

  1. Select APIs in the sidebar.
  2. Select the more actions icon More actions icon next to an API and select Delete.

When you delete an API, the following items are deleted with it:

  • API definitions or collections contained in the API
  • Published API versions (including versions published to the Private API Network)
  • The Private API Network listing for the API
  • Integrations configured for the API

Last modified: 2022/09/15