AI features require a Starter plan or above. Requests made on the Free plan return a
403 Forbidden response.Explain an event
GET /api/endpoints/:id/events/:eventId/ai/explain
Returns a plain English explanation of what the webhook event means. Useful for quickly understanding an unfamiliar payload without reading the raw JSON.
Generate a TypeScript interface
GET /api/endpoints/:id/events/:eventId/ai/schema
Analyzes the event payload and generates a TypeScript interface that matches its structure. Use this to get type safety in your webhook handler without writing the interface by hand.
Generate handler code
POST /api/endpoints/:id/events/:eventId/ai/handler
Generates a ready-to-use webhook handler function for the event in your chosen language and framework.
The programming language for the generated handler. Supported values:
typescript, javascript, python, go.The web framework to target. Supported values:
express, fastify, nextjs, fastapi, gin.
Response
Diagnose a failed delivery
GET /api/endpoints/:id/events/:eventId/ai/diagnose
Returns an AI-generated diagnosis of why an event failed to deliver and what you can do to fix it. Use this when an event has a failed or dead_letter status.
The event ID. The event should have a
failed or dead_letter status for meaningful results.