Aug 19, 2025

Webhooks

Bruce Hill

Software Engineer

Stainless now supports generating methods to parse incoming webhooks into types defined in your OpenAPI specification and verify standard webhook signatures.

app.post('/webhook', async (req, res) => {
  const event: MyWebhookEvent = client.webhooks.unwrap(
    req.body.toString(),
    req.headers,
  );
  ...
});

See docs for more details.