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 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. 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 that accepts either 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.