Archive API docs
MUTATION

createWebhookSubscription

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

Arguments

input CreateWebhookSubscriptionInput! required
Mutation input.

Returns

secret String
The plaintext signing secret (whsec_-prefixed). Returned ONLY here and from rotateWebhookSubscriptionSecret — store it now; it is never shown again. 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.