Skip to content
Proud to collaborate with Microsoft for Startups

stripe.webhooks.validate_event ​

Validate a Stripe webhook signature and parse the event

Validate a Stripe webhook signature and parse the event.

The webhook originates from the CUSTOMER'S OWN Stripe account; the signing secret defaults from the org-scoped Stripe connection selected by cloud_connection_uuid, and can be overridden per run via webhook_secret.

Pass the raw request body (as a string) and the Stripe-Signature header value. This workflow does NOT call any Stripe API — it only performs local signature verification.

Inputs:

  • cloud_connection_uuid: Org-scoped Stripe connection UUID (required).
  • payload: Raw request body string (required).
  • signature: Value of the Stripe-Signature HTTP header (required).
  • webhook_secret: Webhook endpoint secret, e.g. whsec_ABC123 (optional — defaults to the secret stored on the Stripe connection).

Outputs (terminal state_data):

  • event_id: str — Stripe event ID
  • event_type: str — e.g. customer.subscription.created
  • event_object: dict — the event's data.object payload
  • livemode: bool — true for live events, false for test events

Connection required: cloud_connection_uuid — supplies the default webhook signing secret; there is no platform-key fallback.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-stripe
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Org-scoped Stripe connection (customer's own account)
payloadstringYes—Raw request body string
signaturestringYes—Stripe-Signature header value
webhook_secretstringNo—Webhook endpoint secret (whsec_...); defaults to the secret stored on the connection

Output Schema ​

FieldTypeRequiredDefaultDescription
event_idstringNo——
event_objectdictNo——
event_typestringNo——
livemodebooleanNo——
cloud_connection_uuiduuidNo——
payloadstringNo——
signaturestringNo——
webhook_secretstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "stripe.webhooks.validate_event",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "payload": "value",
    "signature": "value"
  }
}