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 os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
# `payload` is the raw body of the incoming webhook request.
event = client.beta.webhooks.parse_unverified(
payload,
)
print(event)