Skip to content

Webhook Integration Guide

Learn how to integrate LexgoSign webhooks into your application.

Coming Soon

Detailed webhook integration guide will be added in a future update.

Quick Start

  1. Create a webhook endpoint in your application
  2. Subscribe to events via the API
  3. Process webhook payloads
  4. Respond with 200 OK

Example Endpoint

from flask import Flask, request

app = Flask(__name__)

@app.route('/webhooks/lexgo', methods=['POST'])
def handle_webhook():
    payload = request.json
    event_type = payload['event_type']

    if event_type == 'envelope.success':
        # Handle successful envelope
        envelope = payload['data']
        process_completed_envelope(envelope)

    return {'success': True}, 200

Security

Verify webhook authenticity using the Authorization header.

Next Steps