Postman Collection Builder

Generate a Postman collection JSON for testing a REST API

Takes an API base URL, an auth type, and a list of endpoints with methods and sample bodies, then outputs a valid Postman Collection v2.1 JSON you can import straight into Postman.

What is Postman Collection v2.1?

It is the current JSON format Postman uses to store a group of saved requests. The schema lives at the v2.1 URL and is recognized by the Import dialog in any modern Postman version.

Build a Postman collection in seconds

A Postman collection is just a JSON document describing a set of saved HTTP requests. Writing one by hand is error-prone because the v2.1 schema nests request, url, header, and body objects in a specific shape. This builder takes a base URL, an auth choice, and a plain list of endpoints, and emits a clean, importable collection.

How it works

The output follows the Postman Collection v2.1 schema. The collection has an info block with a generated UUID and the schema URL, a variable array holding your baseUrl, and an item array with one entry per endpoint. Each line you enter is parsed as METHOD path; the path is appended to the {{baseUrl}} variable and split into host and path segments as the schema requires. When the next line is a JSON object, it is attached as a raw body with a application/json Content-Type header. Selecting Bearer or Basic adds a collection-level auth block so every request inherits credentials.

Tips and example

List endpoints one per line, for example GET /users then POST /users followed by {"name":"Ada"} on its own line. Methods are case-insensitive. Use a {{baseUrl}} style placeholder mentally — you only type the path, the builder prefixes the variable. After importing, set the token variable in the collection to authenticate live calls.