Contract test your APIs
Keep the promises you made to your consumers. Optic ensures your APIs are working as-designed by validating their behavior with real network traffic. It's snapshot testing for your API behavior.
✅ Seamlessly fits into your developer workflows and CI pipelines
✅ Ensure your API is always working as-designed
✅ Works just like your snapshot tests

Verify OpenAPI from test traffic
- Accurate Documentation
- Documenting existing APIs manually is error prone and time consuming. Optic makes the process easy and accurate.
- Every Change Tracked
- Run Optic in CI to make sure every change to your APIs gets documented
- Connect your Test Suites
- Use the traffic from your existing tests to document your API behavior.
- Maintainable OpenAPI
- Optic generates OpenAPI with $refs. Refactor it, add descriptions, etc. Optic is smart enough to never overwrite them.
5 minute demo
Install the CLI
npm install -g @useoptic/optic
Init a capture config and empty OpenAPI spec
optic capture init openapi.yml
Run test traffic and verify it against OpenAPI spec
optic capture openapi.yml
// What people are saying //

Gary Poster Senior Director Engineering

Kostas Petrakis Lead API Engineer
"Brilliant! That's a whole lot of OpenAPI I don't need to write, and Optic is even making components to keep your OpenAPI Dry."

Phil Sturgeon Author, APIs you Won't Hate
"Anyone using (or wanting to use) OpenAPI to describe APIs should take a strong look at Optic. They truly get what it takes to maintain a great API at scale 🧑🍳🤌"

Marc-André Giroux API Lead
"Optic is a smart, simple, and straightforward solution to a real world problem every company faces"

Kin Lane API Evangelist
Add Contract Tests in minutes
Want to learn more? Read the open source documentation