Skip to main content
POST
Create a workflow webhook
The answer (201) is the webhook, with its url and signing_secret. Send require_signature: true to refuse any POST without a valid signature, and enabled: false to create it turned off. A workflow has one webhook. Creating a second answers 409. What to send to the URL, what it answers, and signing: Start a workflow from a webhook. Each run it starts uses your credits like any run. Needs workflows:write and workflows:invoke. MCP tool: get_workflow_webhook with create: true.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.

Headers

Idempotency-Key
string

Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

slug
string
required

Body

application/json
require_signature
boolean
default:false

Refuse deliveries without a valid signature.

enabled
boolean
default:true

Response

Successful Response

id
string
required
workflow_id
string
required
enabled
boolean
required
url_preview
string
required

The URL with its secret part hidden.

require_signature
boolean
required

On: a delivery without a valid signature is refused (401).

rate_limit_per_minute
integer
required
created_by
string
required
workflow_slug
string | null
url
string | null

The full URL to POST to. Only for someone who may change the workflow; null otherwise (see url_preview).

signing_secret
string | null

HMAC-SHA256 key for X-Valendata-Signature. Only for someone who may change the workflow.

previous_secret_valid_until
string | null

After a secret rotation the old secret is still accepted until then.

max_body_bytes
integer
default:1048576
max_wait_seconds
integer
default:30
inputs
string[]

The workflow's inputs a field of the same name fills; everything sent also arrives as the input payload.

last_delivery_at
string | null
created_at
string | null
updated_at
string | null