Skip to main content

Real-Time Events

Legalesign can push events to your application in real time — document signed, upload completed, send failed, and so on. There are two mechanisms, and you can use either or both.

Subscriptions

GraphQL subscriptions open a persistent WebSocket connection to the Legalesign AppSync endpoint. Your client receives events as they happen, with no polling.

Best for:

  • Frontend apps that need instant UI updates
  • Tracking upload or send progress in real time
  • Any flow where you're already holding a GraphQL connection

Get started: Subscriptions Quickstart

Guides:

Webhooks

Webhooks send an HTTP POST to a URL you configure whenever an event occurs. No persistent connection needed — your server just handles incoming requests.

Best for:

  • Backend integrations and automation
  • Systems behind firewalls that can receive HTTP but not hold WebSocket connections
  • Simple "notify me when done" workflows

Get started: Webhooks

Which Should I Use?

SubscriptionsWebhooks
ConnectionPersistent WebSocketHTTP POST per event
LatencyInstantNear-instant
Best forFrontend / interactive appsBackend / automation
AuthOAuth token on connectionConfigured URL + optional secret
RetryClient reconnectsLegalesign retries on failure

You can use both together — for example, subscriptions to update your UI and webhooks to trigger backend workflows.

Export This Article

Save a copy of this page as PDF or plain text.