Skip to main content
POST
Rotate a workflow webhook
  • {"rotate": "url"} gives it a new URL. The old one stops working at once. Use it when the URL leaked.
  • {"rotate": "secret"} gives it a new signing secret. The old one is still accepted for 24 hours, until previous_secret_valid_until, so you can update the sender.
The answer is the webhook with its new url or signing_secret. Needs workflows:write.

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
rotate
enum<string>
default:url

url: a new URL now (the old one stops at once). secret: a new signing secret (the old one is still accepted for 24 hours).

Available options:
url,
secret

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