Import an OpenAPI definition

View as Markdown
Imports an OpenAPI definition into Postman as a new [Postman Collection](https://learning.postman.com/docs/getting-started/creating-the-first-collection/). **Note:** - This endpoint has a rate limit of **10 requests per 10 seconds**. - The Postman web app does not support the `file` input method type. - If you do not include the `workspace` query parameter, the system imports the definition into the oldest personal Internal workspace you own. - For an example of importing a file, see the [Postman API collection](https://www.postman.com/postman/postman-public-workspace/example/12959542-08d74ce2-8150-4f72-99a7-11e60492eb47).

Authentication

x-api-keystring
API Key authentication via header

Query parameters

workspacestringRequired
The workspace's ID.

Request

This endpoint expects an object.
JSON SchemaobjectRequired
OR
JSON StringifiedobjectRequired

Response

Successful Response
collectionslist of objectsOptional
A list of the collections created from the imported OpenAPI definition.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error