x-extend-request-timestamp
, the body of the request, and the signing secret associated with the webhook.v0:${timestamp}:${requestBody}
x-extend-request-signature
. If they are equal, then the request is verified to be from Extend.
Here is pseudocode in Javascript to perform the verification:
Field | Description |
---|---|
eventId | string - Unique identifier for the event |
eventType | string - Type of the event that occurred (workflow_run.completed) |
payload | object - Contains the WorkflowRun object. See the GET WorkflowRun endpoint for the shape. |
Event Type | Description |
---|---|
workflow_run.completed | Triggered whenever a WorkflowRun is completed |
workflow_run.failed | Triggered whenever a WorkflowRun fails |
workflow_run.needs_review | Triggered whenever a WorkflowRun needs review* |