Implementing a Webhook API to capture chat logs and leads in real-time. The API should support JSON payloads, include security measures like token authentication, and provide comprehensive documentation.