Skip to main content
Creating a webhook target registers a new HTTP endpoint that Plain will deliver events to. You must pass:
  • url: the endpoint Plain should POST to
  • description: a short human-readable label (shown in the Plain app)
  • isEnabled: whether deliveries should start immediately
  • eventSubscriptions: the list of event types this target should receive
  • version: the webhook schema version to pin to (we recommend always pinning to a specific version)
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
The full list of subscribable event types is available via the subscriptionEventTypes query, or in the webhooks reference.
Mutation
Variables