Help CenterVying
Open Vying
Menu

Rotate Webhook Signing Secret

POST/webhooks/{webhookId}/rotate-secret

Generate a new HMAC signing secret for a webhook and return it once.

Needs write access. About keys

Request

curl -X POST "https://app.vyingfor.com/api/v1/webhooks/{webhookId}/rotate-secret" \
  -H "Authorization: Bearer YOUR_API_KEY"

Parameters

NameInTypeDescription
webhookId requiredPathstring

Webhook subscription UUID.

Response

200 Webhook with new signing secret

FieldTypeDescription
idstring

Unique identifier for the webhook subscription.

organizationIdstring

Organization identifier that owns this webhook.

brandIdstring or null

Brand identifier when scoped to a single brand, or null for all brands in the organization.

namestring

Display name for the webhook.

urlstring

HTTPS destination URL (port 443, public IP only).

preset"json" | "slack" | "teams"

Payload formatting preset.

events("report.ready" | "action.verdict_settled" | "visibility.alert" | "sentiment.alert" | "webhook.test")[]

Subscribed event types.

secretLastFourstring

Last four characters of the current HMAC signing secret.

enabledboolean

Whether the webhook receives live events.

consecutiveFailuresinteger

Consecutive terminal delivery failures since the last successful delivery or URL/enable reset.

disabledReasonstring or null

Automatic disablement reason when the circuit breaker trips, or null.

lastFailureAtstring or null

Timestamp of the most recent terminal delivery failure, or null.

createdByUserIdstring or null

User ID of the creator when created from the dashboard. Null when the webhook was made through the API.

createdAtstring

Timestamp when the webhook was created.

updatedAtstring

Timestamp when the webhook was last updated.

signingSecretstring

One-time plaintext HMAC signing secret (only returned on creation and secret rotation).

Errors