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.
string
required
The endpoint ID.
string
required
The event ID.
string
A plain English description of what this webhook event represents.
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.
string
required
The endpoint ID.
string
required
The event ID.
string
A TypeScript interface definition derived from the event payload.
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.
string
required
The endpoint ID.
string
required
The event ID.
string
required
The programming language for the generated handler. Supported values:
typescript, javascript, python, go.string
required
The web framework to target. Supported values:
express, fastify, nextjs, fastapi, gin.
Response
string
The generated handler function as a string, ready to paste into your project.
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.
string
required
The endpoint ID.
string
required
The event ID. The event should have a
failed or dead_letter status for meaningful results.string
A description of the likely cause of the delivery failure.
string
Recommended steps to resolve the issue.
