> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# Integrate Postman with OpenAPI

You can import your existing OpenAPI 3.0 and 3.1 definitions ([OpenAPI Specification](https://spec.openapis.org/oas/latest.html)) into Postman. Postman supports both YAML and JSON formats. Spec Hub supports OpenAPI 2.0, 3.0, and 3.1.

To import an API definition into Postman, click ![Options icon](https://assets.postman.com/postman-docs/aether-icons/v12/icon-action-options-stroke.svg#icon) **Options** in the sidebar and select **Import**. You can choose to upload a file or folder, enter a URL, paste your raw JSON or YAML, or import from a code repository. Learn more about how to import an API into [Spec Hub](/docs/design-apis/specifications/import-a-specification/).

After importing your API into Spec Hub, you can [edit your API specification](/docs/design-apis/specifications/edit-a-specification/), [view and fix syntax errors in your specification](/docs/design-apis/specifications/validate-a-specification/#view-syntax-errors-in-your-specification), or [generate a collection](/docs/design-apis/specifications/generate-collections/).