Pause your project

Use a webhook to pause your project based on spend management.

DX Team
1 min read
Last updated November 11, 2025

You can pause your project through the REST API. When you set up spend management, you can trigger a webhook which calls the REST API with the following code:

api/pause-project.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 });
}

Was this helpful?

supported.

Read related documentation

Explore more Spend Management guides

No related guides available.