LINE Message API Library
This page provides a complete library of LINE Official Account message API payloads for every supported content type. For channel behaviour, recipient addressing, and message counting, see LINE Official Account (Two-way).
Note
Every 8x8 LINE example writes
typein Title Case (Text,Image,Video,Audio,Location). The shared/messagesOpenAPI schema lists the enum in lowercase, but its own inline example uses Title Case. No available source states that the field is case-insensitive, so use Title Case exactly as shown.
All character, count, and file-size limits on this page are LINE's. No available source states which of them the 8x8 platform pre-validates before forwarding a message to LINE.
Endpoint: POST https://chatapps.8x8.com/api/v1/subaccounts/{subAccountId}/messages
| Message Type | API Payload | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Text Source: LINE Developers | Send: View JSONKey Fields:
LINE Limits:
| |||||||||||||||
Image Source: LINE Developers | Send: View JSONKey Fields:
LINE Limits:
| |||||||||||||||
Video Source: LINE Developers | Send: View JSONKey Fields:
LINE Limits:
| |||||||||||||||
Audio | Send: View JSONKey Fields:
LINE Limits:
| |||||||||||||||
Location Source: LINE Developers | Send: View JSONKey Fields:
LINE Limits:
|
Media Hosting
Host your media yourself and pass a publicly reachable HTTPS URL in content.url. Every LINE send example, both in the published usage samples and in 8x8's internal test collection, references an external public URL.
The URL must satisfy LINE's requirements: HTTPS with TLS 1.2 or later, percent-encoded using UTF-8, and no longer than 2,000 characters.
Related Resources
For Developers:
- LINE Official Account (Two-way) - How the channel addresses a recipient, consent, authentication, and message counting
- Getting Started with LINE over the 8x8 API - Authentication, base URLs, and the optional request properties
- LINE Official Account Webhooks - Inbound messages, delivery receipts, and retry behaviour
Cross-channel References:
- Supported Messaging Apps Content Types - The per-channel content type matrix
- Send Message - The generated API reference for the send endpoint
External:
- LINE Messaging API: Message objects - LINE's own field-level specification and limits
- LINE Messaging API: Message types - LINE's message type overview with screenshots
Source:
Source:
Source:
Source: