Tutorials

Automatic Generation of OpenAPI contracts with API Contract Generator

API Contract Generator automates the manual task of creating OpenAPI contracts by automatically creating them from Postman collections and API traffic.

API Contract Generator Overview

A simple step-by-step video outlining how you can autogenerate new OpenAPI contracts using the API Contract Generator

42Crunch OpenAPi Editor Extension

Where to access API Contract Generator

Open the 42Crunch OpenAPI Editor extension in your favorite IDE, e.g. VS Code, JetBrains, Eclipse.

How to access API Contract Generator

Navigate to the API Contract Generator tool, from the 42C icon on the side panel.

How to access API contract Generator
Select the Postman and HAR files

Select your input files

"Select" the Postman Collection, Postman environment variable and HAR files from your file system. These files will supply the API Contract Generator with the necessary information to generate a new OpenAPI contract. The quality and coverage of the newly generated OpenAPI file are dependent on the quality of the information supplied in those files.

Autogenerate your new OpenAPI file

Once you have selected all the input files, click on "Generate" to autogenerate the new OpenAPI file

API contract Generator - Generate new OpenAPI
Newly Generated OpenAPI File

Save and Open the new OpenAPI Contract

The newly generated OpenAPI file can be saved and then opened in the IDE for further editing or auditing.

Latest Resources

WEBINAR

Agentic AI: Fools Rush in Where Angels Fear to Tread

Join, Rik Turner, Chief Analyst at Omdia in conversation with Philippe Leothaud, CTO at 42Crunch as they separate signal from noise and explore the practical implications for enterprises seeking to enable the AI enterprise with agentic AI, but ensure that the appropriate security guardrails are in place.

BLOG

The Best API Security Platform for the Agentic Enterprise

By Hugh Carroll | May 8, 2026

Selecting the API Security Platform that addresses your AI concerns Enterprise API security has always been hard. In 2026, it has become structurally more difficult — not because the threat landscape has changed incrementally, but because of the way that APIs are being built has changed entirely. AI […]

DataSheet

APIs are the core building block of every enterprise’s digital strategy, yet they are also the number one attack surface for hackers. 42Crunch makes developers’ and security practitioners' lives easier by protecting APIs, with a platform that automates security into the API development pipeline and gives full oversight of security policy enforcement at every stage of the API lifecycle.

Secure Your APIs Today

#1 API security platform