Skip to main content

trigger

Function trigger 

Source
pub async fn trigger(
    __arg0: State<AppState>,
    __arg1: Path<String>,
    headers: HeaderMap,
    body: Bytes,
) -> Result<Json<FiredResponse>, ApiError>
Expand description

POST /api/automations/{id}/trigger — an inbound signed webhook.

Open in the scope table on purpose: the signature over the body is the credential. A sender holding the automation’s key can fire that one automation and nothing else, which is why this needs no bearer token and must never accept one in place of a signature.