Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Jump to examples ↓
    Mutation

    rotateWebhookSubscriptionSecret

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

    Arguments

    id ID! required
    UUID of the subscription to rotate.

    Returns

    Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.

    secret String
    The new plaintext signing secret (whsec_-prefixed). Returned only here and from createWebhookSubscription, and never shown again, so store it immediately. Deliveries carry one v1= per active secret in X-Archive-Signature: the new secret first, then each secret retired in the last 24h, newest first, so a receiver that accepts any matching signature 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.