Documenting APIs
Paste API responses to generate TypeScript definitions for SDKs or internal documentation.
Infer a TypeScript interface from a JSON object.
Turn sample JSON payloads into a quick TypeScript starting point. Perfect for wiring new API clients or sharing data contracts with teammates.
Paste API responses to generate TypeScript definitions for SDKs or internal documentation.
Infer types while experimenting in a playground without manually writing interfaces from scratch.
Share generated interfaces to explain object structures when ramping up new developers.
Provide a representative sample object. Arrays will derive their element type from the first item.
Adjust the interface name to match your domain model. Optional fields are always included in the result.
Use the generated interface as a baseline and refine complex unions or nested shapes by hand.
Optionality is not inferred automatically. Every observed property is required so you can decide manually which ones should be optional.
The first element determines the inferred type. Empty arrays default to `unknown[]` so you can refine them afterwards.