Parses a webhook payload into an event without verifying its signature. Prefer unwrap() unless
you have already verified the signature yourself.
Parameters
Returns
Parse Unverified
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
// `body` is the raw body of the incoming webhook request.
const event = client.beta.webhooks.parseUnverified(body);
console.log(event);