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

    createWebhookSubscription

    Create an outbound-webhook subscription. Returns the signing secret exactly once.

    Arguments

    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.

    input CreateWebhookSubscriptionInput! required
    Mutation input.

    Returns

    secret String
    The plaintext signing secret (whsec_-prefixed). Returned only here and from rotateWebhookSubscriptionSecret, and never shown again, so store it immediately. The whsec_ prefix is part of the HMAC key; do not strip it when verifying X-Archive-Signature.
    userErrors [UserError!]!
    List of user-facing validation errors. Empty on success.
    webhookSubscription WebhookSubscription
    The newly created subscription. Null on failure.