---
title: Pause your project
description: Use a webhook to pause your project based on spend management.
url: /kb/guide/pause-your-project
canonical_url: "https://vercel.com/kb/guide/pause-your-project"
published: 2025-11-03
last_updated: 2025-11-11
authors: DX Team
related:
  - /docs/spend-management
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

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:

```ts
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 });
}
```