/api/webhook/* and turning on Webhook Access in your app’s settings. When enabled, only /api/webhook/* routes are publicly accessible — all other routes remain protected.
Setup
Create an API route in your app under the/api/webhook/ path:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Receive HTTP callbacks from external services.
/api/webhook/* and turning on Webhook Access in your app’s settings. When enabled, only /api/webhook/* routes are publicly accessible — all other routes remain protected.
/api/webhook/ path:
// src/app/api/webhook/stripe/route.ts
export async function POST(request: Request) {
const body = await request.json();
// Handle the webhook payload
return new Response("OK", { status: 200 });
}