Webchat Widget API
v1.0.0The API behind the Line chat widget. Use it to embed Line chat in your own front end instead of loading /widget/v1.js.
Two credentials are involved. The public key identifies the widget and is safe to ship in client code. POST /session exchanges it for a short-lived session token that authorises the rest of the conversation.
Every request is checked against the widget's allowed-domains list using the Origin header, so calls must come from a browser on an authorised domain. Requests are rate limited per visitor, per IP and per organisation.
Base URL
https://staging.useline.io
Session
Load the widget and open a conversation.
GETRead a widget's public configuration/api/channels/webchat/sessionPOSTStart a conversation/api/channels/webchat/sessionConversation
Send messages and read replies.
POSTSend a message and stream the reply/api/channels/webchat/messageGETPoll for new messages/api/channels/webchat/events