Triggers
Webhook
Triggers when a webhook receives a POST or GET request with structured data.
Category: Triggers · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: WebhookTrigger · Trigger
Inputs#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| Webhook URL | webhook_trigger_url | No | (empty) | The unique URL for this webhook trigger. Copy and use it in external services. |
| Allowed Method | Text | No | POST | HTTP method this webhook accepts. Requests with other methods return 405. Options: POST, GET |
| Validate Body Schema | Yes/No | No | Off | When enabled, request body must match the JSON Schema defined below. |
| JSON Schema | Text | No | — | JSON Schema definition for request body validation. Only used when ‘Validate Body Schema’ is enabled. |
%!s()#
JSON Schema for Webhook Body Validation#
For full documentation, see the JSON Schema Reference.
Basic Object Schema#
Validate that the body is an object with specific properties:
{
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name"]
}String with Constraints#
{
"type": "object",
"properties": {
"email": {"type": "string", "format": "email"},
"code": {"type": "string", "minLength": 3, "maxLength": 10}
}
}Enum Values#
Restrict a field to specific values:
{
"type": "object",
"properties": {
"status": {"type": "string", "enum": ["active", "inactive", "pending"]}
}
}Nested Objects#
{
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"name": {"type": "string"},
"address": {
"type": "object",
"properties": {
"city": {"type": "string"},
"zip": {"type": "string"}
}
}
}
}
}
}Arrays#
{
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {"type": "string"},
"minItems": 1
}
}
}Supported Types#
string– text values (supportsformat:email,uri,date-time, etc.)integer– whole numbersnumber– any numeric valueboolean–trueorfalsearray– list of itemsobject– nested key-value pairsnull– null value
Empty Schema#
Leave empty to accept any request body without validation.
Outputs#
| Output | Type |
|---|---|
| Data | Any |
| Method | Any |
| Headers | Any |
| Query Params | Any |