Claude webhooks that survive a Claude follow-up.
Anthropic ships you the agent result over webhook. You want to feed it back into another Claude call to format, score, or route it. That's 30 more seconds. AnyHook handles the gap.
The timing problem
Webhooks for Claude Managed Agents make up to three delivery attempts, with backoff between 5 and 120 seconds. After the last one fails the event is dropped, with no signal that it was lost.
The natural thing to do with an agent result is feed it into another Claude call: summarise the trace, classify the output, decide whether to escalate. That second call takes another 20-40 seconds. You're outside the SLA before you've done anything useful.
One URL change, the Claude pipeline stays the same
AnyHook acks Anthropic instantly, then delivers the verified event to your endpoint with the original Anthropic-Signature plus a re-signed AnyHook-Signature.
// In your Anthropic dashboard, set the webhook URL to:
// https://in.anyhook.net/{user-slug}/{app-slug}
//
// Your handler is now free to run a follow-up Claude call.
import Anthropic from "@anthropic-ai/sdk";
import { verifyWebhook } from "anyhook-verify";
const anthropic = new Anthropic();
export async function POST(req: Request) {
if (!(await verifyWebhook(req, process.env.ANYHOOK_SIGNING_SECRET!))) {
return new Response("invalid", { status: 401 });
}
const { agent_result } = await req.json();
// Free to take 30+ seconds. Anthropic already saw 200.
const summary = await anthropic.messages.create({
model: "claude-opus-4-7",
max_tokens: 800,
messages: [{ role: "user", content: `Summarise: ${agent_result}` }],
});
await persistSummary(summary);
return new Response("ok", { status: 200 });
}Questions teams ask
- How does AnyHook verify Anthropic's signature?
- It doesn't, at the edge: Anthropic's scheme is not one of those AnyHook checks (listed in the docs). The original signature header is forwarded untouched, so your server can keep its own check on the first delivery, and AnyHook-Signature on every delivery proves it came through AnyHook.
- Will Claude Managed Agent webhooks count toward my Anthropic limits?
- Anthropic delivers each event once to AnyHook (with their normal retry policy if AnyHook itself failed to ack). After that, AnyHook handles all downstream retries to your endpoint. Your handler being slow does not pressure Anthropic.
- Can I see the raw Claude payload after the fact?
- Yes. Every event is stored encrypted and replayable for 3, 30 or 90 days by plan; Pro and Scale then keep a read-only archive for 1 or 7 years. You can inspect the original payload, replay it to your endpoint, or fork it to a second destination.
Change one URL. Keep your Anthropic handler.
Free tier covers 10K events / month. No SDK: point Anthropic at your AnyHook inbound URL.