Skip to main content
The AI API analyzes captured webhook events and generates code and explanations to help you integrate faster.
AI features require the Starter plan or above. Requests from free accounts return a 403 with "upgrade_required": true.

Explain payload

Returns a plain English explanation of what the webhook event means — what triggered it, what happened, and what the key fields represent.
Path parameters
string
required
The endpoint ID.
string
required
The event ID.
Response
string
required
A 2–3 sentence plain English description of the webhook event.

Generate TypeScript interface

Generates a TypeScript interface that matches the structure of the event payload. Use this as a starting point for typing webhook payloads in your codebase.
Path parameters
string
required
The endpoint ID.
string
required
The event ID.
Response
string
required
A TypeScript interface as a raw string (no markdown fences).

Generate handler code

Generates a complete, ready-to-use webhook handler for your preferred language and framework. The handler includes HMAC signature verification and error handling based on the captured event.
Path parameters
string
required
The endpoint ID.
string
required
The event ID.
Request body
string
default:"typescript"
Target programming language. Supported values: typescript, javascript, python, go.
string
default:"express"
Target web framework. Supported values: express, fastify, nextjs, fastapi, gin.
Response
string
required
The generated handler code as a raw string (no markdown fences).

Diagnose failure

Analyzes a failed event and its delivery attempts to explain what went wrong and how to fix it.
Path parameters
string
required
The endpoint ID.
string
required
The event ID.
Response
string
required
An actionable explanation of why delivery failed and how to resolve the issue.