# Is it possible to create a collection from an OpenAPI document OAS 2.0 or OAS 3.0?

**URL:** <https://community.postman.com/t/is-it-possible-to-create-a-collection-from-an-openapi-document-oas-2-0-or-oas-3-0/50621>\
**Category:** Help Hub\
**Tags:** collections, openapi, import\
**Created:** [August 16, 2023, 9:49am UTC](https://community.postman.com/t/is-it-possible-to-create-a-collection-from-an-openapi-document-oas-2-0-or-oas-3-0/50621 "2023-08-16T09:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyeye](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@skyeye](https://community.postman.com/u/skyeye)\
**Post date:** [August 16, 2023, 9:49am UTC](https://community.postman.com/t/is-it-possible-to-create-a-collection-from-an-openapi-document-oas-2-0-or-oas-3-0/50621/1 "2023-08-16T09:49:47Z")

</div>

I’ve got an Open API (OAS) document (in YAML but I’ve tried the one in JSON too) that describes some APIs exposed by a server.  
From my workspace, choosing “Import”, I have 2 options: “Postman collection” or “OpenAPI 2.0 with a postman collection”. If I choose the first option, nothing happens, no error, no collections get generated, no messages shown. Second options, I can see the full specification in the APIs section from the sidebar but I cannot see any shortcut that helps me create requests from the specs.  
In older versions of Postman, it seems like something similar was possible. I am on the latest version (10.16.9). Am I missing something?

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [August 17, 2023, 9:31pm UTC](https://community.postman.com/t/is-it-possible-to-create-a-collection-from-an-openapi-document-oas-2-0-or-oas-3-0/50621/2 "2023-08-17T21:31:23Z")

</div>

Option 1 should result in one collection. Option 2 should result in one collection and one specification. It’s working properly with my latest version (10.17). Feel free to [file an issue here](https://github.com/postmanlabs/postman-app-support/issues) in case there’s something about your setup resulting in this behavior. You would need to provide more details, but you can link back to this thread.

Something else to try since you have successfully imported the specification - generate the collection from the overflow menu: **API \> (…) \> Add collection \> Generate from definition**. The UX has changed a bit from previous versions.

 ![Screenshot 2023-08-17 at 2.27.58 PM](https://us1.discourse-cdn.com/getpostman/original/3X/4/8/482bde5c2aeb340e39af626310e0dbdab95abf35.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 18, 2023, 12:54pm UTC](https://community.postman.com/t/is-it-possible-to-create-a-collection-from-an-openapi-document-oas-2-0-or-oas-3-0/50621/4 "2023-11-18T12:54:46Z")

</div>

Closed on November 18, 2023, 12:54pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
