OpenAPI / Swagger Preview
Render OpenAPI 3.x and Swagger 2.0 specs in JSON or YAML as API docs with endpoints grouped by tag, parameters and schemas.
OpenAPI / Swagger Preview
Pet Store API
v1.2.0OpenAPI 3.0.3A sample pet store API demonstrating OpenAPI 3.0 features. Manage your pets, orders, and user accounts.
JWT authentication token
API key for service-to-service auth
Everything about your pets
Access to pet store orders
User account operations
Supported features
OpenAPI 3.0.x / 3.1.x and Swagger 2.0. Auto-detects JSON or YAML format.
GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD, TRACE. Grouped by tag with parameters, request bodies, and responses.
Component/definition schemas with $ref resolution. Displays property types, required fields, and descriptions.
HTTP Bearer, API Key, OAuth2, and OpenID Connect security scheme display.
Updated . Provided as is. Check the output before you rely on it in production.
How to use OpenAPI / Swagger Preview
- 1
Paste an OpenAPI or Swagger spec
Paste an OpenAPI 3.0/3.1 or Swagger 2.0 spec as JSON or YAML, or load the sample. The format is detected automatically.
- 2
Navigate endpoints
Endpoints are grouped by tag. Expand any endpoint to see its parameters, request body and responses, or use Expand All and Collapse All.
- 3
Search the spec
Filter endpoints by path, method, summary or operationId to find what you need in a large spec.
- 4
Review schemas and security
Check response schemas for success and error cases, the component schemas, servers and the security schemes the API declares.
- 5
Copy endpoint URLs
Copy the full URL for any endpoint, including the server base, for curl, a REST client or your code.
Questions and answers
What is OpenAPI / Swagger Preview?
Does it support both OpenAPI 3.x and Swagger 2.0?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/openapi-preview/
For automation planning, fetch the canonical contract at /api/tool/openapi-preview.json.