We've added a new endpoint to the API that allows you to register webhooks (or list them, or update them, or delete them.) You can check it out over in the API documentation.
While I imagine programmatic webhooks are overkill to many people, there are many use cases this enables for platforms managing multiple newsletters on top of Buttondown:
Here's an example invocation, just for fun:
requests.post("https://buttondown.com/v1/webhooks", {
"url": "https://example.com/webhook",
"event_type": "subscriber.created"
})
That's all! Happy programming!