Build features against the API before you have a real API key. Stoplight Prism reads the OpenAPI 3.1 spec and serves realistic responses locally.
Sometimes you need to build against an API before you have credentials, before you're online, or before you want to consume real data. Prism turns the OpenAPI spec into a local mock server in one command.
Install
npm install -g @stoplight/prism-cliRun the Mock
prism mock https://unlockedcrm.ai/openapi.jsonPrism prints a list of mocked endpoints and starts a server on http://127.0.0.1:4010. Every example in the spec becomes a stock response. Every schema becomes a generator for randomized data.
What You Get for Free
- Validation — Prism rejects requests that don't match the spec, so you catch shape mismatches in dev.
- Dynamic responses — pass
--dynamicto get fresh fake data on every call. - Examples — pass
Prefer: example=successheaders to choose between scenarios.
Use Cases
- Frontend demos — wire your React app to the mock and ship a working prototype before backend is ready.
- CI — run integration tests against Prism in GitHub Actions; no production credentials required.
- Workshops — give every attendee an offline sandbox.
- SDK validation — point your generated client at Prism and assert that it serializes/deserializes correctly.
Two minutes of setup, infinite hours saved.
Where This Fits In unLocked
- best CRM for insurance agents: How insurance CRMs compare on quoting, commissions, AI and price.