LCore WhatsApp API

BerryProtocol 0.1.10

Status: connecting

Authentication

X-API-Key: YOUR_LCORE_API_KEY

Text

POST /api/send/text
{
    "to": "919876543210@s.whatsapp.net",
    "text": "Hello from LCore"
}

Buttons

POST /api/send/buttons
{
    "to": "919876543210@s.whatsapp.net",
    "text": "Choose an option",
    "footer": "LicenseSeller Licensing System",
    "buttons": [
        {
            "id": "visit",
            "text": "Visit Now",
            "kind": "cta_url",
            "url": "https://lcore.app"
        }
    ]
}

PDF

POST /api/send/document
{
    "to": "919876543210@s.whatsapp.net",
    "url": "https://example.com/file.pdf",
    "fileName": "document.pdf",
    "mimetype": "application/pdf",
    "caption": "Your PDF document"
}

PDF + Footer + Multiple Native URL Buttons

POST /api/send/document-buttons
{
    "to": "919876543210@s.whatsapp.net",
    "url": "https://example.com/file.pdf",
    "fileName": "LicenseSeller.pdf",
    "mimetype": "application/pdf",
    "title": "LicenseSeller Licensing System",
    "text": "Hello!

Your license document is attached.",
    "footer": "LicenseSeller Licensing System",
    "buttons": [
        {
            "title": "Visit Now",
            "kind": "cta_url",
            "url": "https://lcore.app"
        },
        {
            "title": "LicenseSeller",
            "kind": "cta_url",
            "url": "https://licenseseller.com"
        },
        {
            "title": "Customer Panel",
            "kind": "cta_url",
            "url": "https://lcore.app/login"
        }
    ]
}

This sends the PDF, body, footer and native URL buttons as one WhatsApp message.

List

POST /api/send/list

Carousel

POST /api/send/carousel