Webhook Object Properties
webhook.method
GET, POST, PUT, DELETE, etc.).
webhook.url
webhook.headers
webhook.query
webhook.body
Content-Type:
- application/json - JavaScript object
- application/x-www-form-urlencoded - Key-value pairs
- text/plain - String
webhook.receivedAt
webhook.ip
webhook.colId
Methods
webhook.addRootFieldsToSheet()
Automatically maps webhook body fields to sheet columns and creates a new row.| Parameter | Type | Required | Description |
|---|---|---|---|
sheetName | string | Yes | Name of the sheet to add the row to |
create | boolean | No | If true, creates columns that don’t exist. Default: false |
- Only processes root-level fields (nested objects are not flattened)
- Column names must match the keys in
webhook.body - If
createisfalseand a field doesn’t have a matching column, it’s ignored
Context Availability
✅ Available in Webhooks
webhook- Webhook object with request datactx.sheet()- Add rows to any sheetctx.getRowByValue()- Query existing rowsctx.getRowById()- Get row by IDctx.utils- Utility functionsservices- All enrichment services
❌ Not Available in Webhooks
ctx.thisRow- No current row contextctx.thisCell- No current cell context