Triggers
Webhook
Minimum cooldown: 60 seconds (basic), 2 seconds (Prime).
Actions using this trigger will fire when a HTTP request is sent to the specified URL. To prevent loops, action locking is enforced for webhook actions and {#fetch} can only call webhooks from other servers.
The request method must be POST. You can access body data via {$request.body} and {$request.headers}, for example {$request.headers.content-type}. For security, authentication headers (like Authorization and Cookie), proxy headers and most x- headers are inaccessible. Event headers from common webhook senders are allowed, like x-github-event, x-gitlab-event, x-gitea-event and Bitbucket's x-event-key, so {$request.headers.x-github-event} works.
Actions with this trigger run with the user who last updated the action in context. The action inherits that user's permissions in the server.
Response data
| Property | Type | Description |
|---|---|---|
| statusCode | "ERROR" | "OK" | "PROCESSING" | The result of the invocation |
| output | string? | The output of the action |
| errorMessage | string? | The error message if the action failed to run |
| errorStack | string? | The stack trace for the action if the action failed to run |