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¶
- Create a webhook endpoint in your application
- Subscribe to events via the API
- Process webhook payloads
- 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.