# Pause your project

**Author:** DX Team

---

You can [pause your project](/docs/spend-management#pausing-projects) through the REST API. When you set up [spend management](/docs/spend-management), you can [trigger a webhook](/docs/spend-management#configuring-a-webhook) which calls the REST API with the following code:

``export async function POST(request: Request) { const projectId = 'your project id'; const teamID = 'your team id'; const route = `${projectId}/pause?teamID=${teamID}`; await fetch(`https://api.vercel.com/v1/projects/${route}`, { method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${process.env.VERCEL_TOKEN}`, }, }); return new Response('Project paused', { status: 200 }); }``

---

[View full KB sitemap](/kb/sitemap.md)
