Archive API docs
MUTATION

rotateWebhookSubscriptionSecret

Rotate a webhook subscription signing secret. Returns the new secret once.

Arguments

id ID! required
UUID of the subscription to rotate.

Returns

secret String
The new plaintext signing secret (whsec_-prefixed). Returned ONLY here and from createWebhookSubscription — store it now; it is never shown again. During the 24h dual-sign overlap deliveries are signed with both the new and previous secrets (two v1= values in X-Archive-Signature), so a receiver accepting either verifies cuts over without dropping a delivery. The whsec_ prefix is PART OF THE HMAC key; do not strip it.
userErrors [UserError!]!
List of user-facing errors. Populated only when rotation failed.
webhookSubscription WebhookSubscription
The subscription after rotation. Null when not found.