---
title: "Spin Up a Local Mock of the unLocked CRM API in 60 Seconds With Prism"
description: "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 — perfect for offline dev, demos, and CI."
url: https://unlockedcrm.ai/blog/spin-up-openapi-mock-server-prism-insurance-crm
canonical: https://unlockedcrm.ai/blog/spin-up-openapi-mock-server-prism-insurance-crm
category: "Tutorials"
published: 2026-07-30
updated: 2026-07-30
author: "unLocked Team"
source: unLocked CRM — AI CRM for insurance agents
---

# Spin Up a Local Mock of the unLocked CRM API in 60 Seconds With Prism

<p>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.</p>

<h2>Install</h2>
<pre><code>npm install -g @stoplight/prism-cli</code></pre>

<h2>Run the Mock</h2>
<pre><code>prism mock https://unlockedcrm.ai/openapi.json</code></pre>
<p>Prism prints a list of mocked endpoints and starts a server on <code>http://127.0.0.1:4010</code>. Every example in the spec becomes a stock response. Every schema becomes a generator for randomized data.</p>

<h2>What You Get for Free</h2>
<ul>
<li><strong>Validation</strong> — Prism rejects requests that don't match the spec, so you catch shape mismatches in dev.</li>
<li><strong>Dynamic responses</strong> — pass <code>--dynamic</code> to get fresh fake data on every call.</li>
<li><strong>Examples</strong> — pass <code>Prefer: example=success</code> headers to choose between scenarios.</li>
</ul>

<h2>Use Cases</h2>
<ol>
<li><strong>Frontend demos</strong> — wire your React app to the mock and ship a working prototype before backend is ready.</li>
<li><strong>CI</strong> — run integration tests against Prism in GitHub Actions; no production credentials required.</li>
<li><strong>Workshops</strong> — give every attendee an offline sandbox.</li>
<li><strong>SDK validation</strong> — point your generated client at Prism and assert that it serializes/deserializes correctly.</li>
</ol>

<p>Two minutes of setup, infinite hours saved.</p>

---

Source: [Spin Up a Local Mock of the unLocked CRM API in 60 Seconds With Prism](https://unlockedcrm.ai/blog/spin-up-openapi-mock-server-prism-insurance-crm) — unLocked CRM, the AI CRM built for insurance agents. Citation permitted with attribution and a link to https://unlockedcrm.ai/blog/spin-up-openapi-mock-server-prism-insurance-crm.
