Next.js Discord

Discord Forum

Spend Management Webhook - Please explain

Unanswered
David the Digital posted this in #help-forum
Open in Discord
Hello, I am attempting to programmatically pause my deployments once a certain spend limit is reached (https://vercel.com/docs/rest-api/endpoints/projects#pause-a-project). I am struggling to understand the steps in this process. Here are my questions:

1. If Vercel is monitoring my spend, why can't Vercel simply pause my deployment once it reaches a certain limit?
2. Can (or should) I add a Spend Management webhook for every project I have deployed?
3. Can one webhook pause multiple or all projects?
4. Once I think I have the correct API route initiated, how can I test if it actually works?
5. Might there be a step-by-step tutorial available for this particular topic?

Thanks in advance, I'm eager to learn!

David

4 Replies

❓ halp pls
pls, anyone interested in helping out?
First look at what vercel does and provides, if you find the options lacking, you can utilize the api to do what you need