stripe.webhooks.create_endpoint ​
Create a Stripe webhook endpoint and store its signing secret
Create a Stripe webhook endpoint on the customer's own Stripe account.
The signing secret is written into the connection secrets under store_secret_as and never persisted in state_data.
Inputs:
- cloud_connection_uuid: Org-scoped Stripe connection.
- url: Public HTTPS URL Stripe will POST to.
- enabled_events: Event names to subscribe.
- store_secret_as: Connection secret key that receives the
whsec_…secret. - description, metadata, api_version: optional Stripe fields.
Outputs:
- endpoint_id, status, url, enabled_events, secret_stored_as
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-stripe |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | Org-scoped Stripe connection (customer's own account) |
url | string | Yes | — | Public HTTPS URL Stripe will POST to |
enabled_events | list | Yes | — | Stripe event names to subscribe |
store_secret_as | string | Yes | — | Connection secret key to write the endpoint signing secret under |
workflow_run_id | string | No | — | DAG-stamped parent run id |
description | string | No | — | Endpoint description in the Stripe dashboard |
metadata | json | No | — | Arbitrary key-value metadata |
api_version | string | No | — | Stripe API version for event payloads |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
endpoint_id | string | No | — | — |
status | string | No | — | — |
url | string | No | — | — |
enabled_events | list | No | — | — |
secret_stored_as | string | No | — | — |
cloud_connection_uuid | uuid | No | — | — |
description | string | No | — | — |
metadata | json | No | — | — |
api_version | string | No | — | — |
store_secret_as | string | No | — | — |
workflow_run_id | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_layer | integer | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "stripe.webhooks.create_endpoint",
"initial_data": {
"cloud_connection_uuid": "value",
"url": "value",
"enabled_events": "value",
"store_secret_as": "value"
}
}