Overview:
Use Laywork’s API or webhooks to push lead data from external systems (e.g., landing pages, partner sites).
Steps:
Go to Settings → API & Webhooks.
Under API Keys, click Generate Key and copy it securely.
In Webhooks, click New Webhook, select the Lead Created event, and enter your endpoint URL.
From your external system, send a POST to https://yourdomain.com/api/leads with JSON payload and your API key in the header.
Verify that incoming requests appear as new leads in Laywork.
Tips & Best Practices:
Secure your endpoint with HTTPS and validate the API key on each request.
Log webhook deliveries and failures to debug integration issues quickly.
Troubleshooting / FAQs:
401 Unauthorized errors: Confirm that your API key is correct and hasn’t been revoked.
Webhooks not firing: Check Laywork’s webhook logs to see if the event was triggered and if your endpoint responded with a 2xx status.