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
package main
import (
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
// payload is the raw body of the incoming webhook request.
event, err := client.Beta.Webhooks.ParseUnverified(payload)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", event)
}