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

State of API Security 2026

Webinar drawing on two years of investigative research from the industry’s leading APIsecurity.io newsletter that includes cases from a wide range of independent sources, the webinar highlights the most common API flaws, from broken input validation and missing authentication to operation-level authorization failures.

BLOG

Securing Model Context Protocol (MCP)

By Anthony Lonergan | November 18, 2025

How MCP’s contract-based design promotes automated tool discovery and secure execution Since its introduction, the Model Context Protocol (MCP) has enjoyed widespread adoption, with new servers and registries appearing at a relentless pace. Now organizations are racing to evolve their technology strategies to keep up with the latest […]

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