Rotate Webhook Signing 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
| Name | In | Type | Description |
|---|---|---|---|
webhookId required | Path | string | Webhook subscription UUID. |
Response
200 Webhook with new signing secret
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the webhook subscription. |
organizationId | string | Organization identifier that owns this webhook. |
brandId | string or null | Brand identifier when scoped to a single brand, or null for all brands in the organization. |
name | string | Display name for the webhook. |
url | string | 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. |
secretLastFour | string | Last four characters of the current HMAC signing secret. |
enabled | boolean | Whether the webhook receives live events. |
consecutiveFailures | integer | Consecutive terminal delivery failures since the last successful delivery or URL/enable reset. |
disabledReason | string or null | Automatic disablement reason when the circuit breaker trips, or null. |
lastFailureAt | string or null | Timestamp of the most recent terminal delivery failure, or null. |
createdByUserId | string or null | User ID of the creator when created from the dashboard. Null when the webhook was made through the API. |
createdAt | string | Timestamp when the webhook was created. |
updatedAt | string | Timestamp when the webhook was last updated. |
signingSecret | string | One-time plaintext HMAC signing secret (only returned on creation and secret rotation). |
Errors
400Invalid request data401Authentication required403The key is valid but doesn't have the access this request needs.404Resource not found429Per-key rate limit exceeded.500Internal server error