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 com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.webhooks.UnwrapWebhookEvent;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
// `body` is the raw body of the incoming webhook request.
UnwrapWebhookEvent event = client.beta().webhooks().parseUnverified(body);
}
}