Skip to main content

WhatsApp API

Lineserve's WhatsApp Business API enables programmatic messaging through WhatsApp.

Features

  • Send text, media, and template messages
  • Receive incoming messages
  • Manage WhatsApp business profile
  • Support for interactive messages (buttons, lists)

Getting Started

Authentication

All API requests require an API key. Learn about authentication.

Base URL

https://api.lineserve.com/v1/whatsapp

Example Request

const response = await fetch('https://api.lineserve.com/v1/whatsapp/send', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
to: '+254712345678',
type: 'text',
text: {
body: 'Hello from Lineserve WhatsApp!'
}
})
});

Endpoints

Send Message

Details about sending WhatsApp messages will be added soon.

Receive Messages

Details about receiving WhatsApp messages will be added soon.

Media Upload

Details about uploading media for WhatsApp messages will be added soon.

Templates

Details about WhatsApp message templates will be added soon.