Represents an incoming webhook request.
This object is passed to webhook callback functions and contains all the information about the HTTP request that triggered the webhook.
async onWebhookReceived(request: WebhookRequest, context: any) { console.log(`${request.method} request received`); console.log("Headers:", request.headers); console.log("Query params:", request.params); console.log("Body:", request.body); console.log("Context:", context);} Copy
async onWebhookReceived(request: WebhookRequest, context: any) { console.log(`${request.method} request received`); console.log("Headers:", request.headers); console.log("Query params:", request.params); console.log("Body:", request.body); console.log("Context:", context);}
HTTP method of the request (GET, POST, etc.)
HTTP headers from the request
Query string parameters from the request URL
Request body (parsed as JSON if applicable)
Represents an incoming webhook request.
This object is passed to webhook callback functions and contains all the information about the HTTP request that triggered the webhook.
Example