Instantly generate models and code from Postman Collections.

Drop a Postman Collection into quicktype to instantly generate clean models and code for the API data consumed by your apps.

Generate code for a collection with the quicktype CLI

Export a collection from Postman, point quicktype at it, and get models for every request and response in the language of your choice.

The Backwater, an oil painting by Charles William Wyllie of a woman on a riverbank watching a man in a punt
quicktype — zsh — 96×32
Install quicktype from npm
$ npm install -g quicktype$ npm install -g quicktype
Download the sample Imgur API Postman Collection
$ curl -L goo.gl/qpDVx7 -o imgur.json$ curl -L goo.gl/qpDVx7 -o imgur.json
Generate Swift to use the Imgur API from iOS$ quicktype -s postman imgur.json -o Imgur.swift
$ quicktype -s postman imgur.json \    -o Imgur.swift
Or generate a C# library...$ quicktype -s postman imgur.json -o Imgur.cs
$ quicktype -s postman imgur.json \    -o Imgur.cs
Or a golang module...$ quicktype -s postman imgur.json -o imgur.go
$ quicktype -s postman imgur.json \    -o imgur.go

The Backwater · Charles W. Wyllie, 1903

A better way to work with data

Most teams still hand-write types, or let a chatbot eyeball a payload. Generated types are faster to get, and they stay correct.

The old way

Hunt for a client library
A good one is gold, but most are outdated, unmaintained, or simply don’t exist for your language.
Write the types by hand, or have a chatbot guess
Slow, error-prone, and stale the moment the API changes. An LLM eyeballing a payload misses optional fields, mislabels numbers, and invents structure that isn’t there.
Read the data as dynamic, untyped values
Every field access is a runtime gamble, and neither your compiler, your IDE, nor your AI assistant can help you.

With quicktype

Generate the client code
Give quicktype sample responses and get idiomatic, strongly typed models and serializers in your app’s language, in seconds.
Regenerate when the API changes
Run quicktype in your build or CI. When the API changes, regenerate and let the compiler point you at exactly what to update.
Give your tools something to work with
Typed data unlocks autocomplete, refactoring, and validation in your IDE, and gives AI agents an accurate model of your data instead of a guess.

Stop guessing at data.

Paste JSON and get typesafe code in seconds, in the browser, in your terminal, or inside your AI agent.

Try it with a collectionnpm install -g quicktype