LineDevelopers

Poll for new messages

GET/api/channels/webchat/events

Returns the transcript and the current handover state. Pass since to fetch only what arrived after a timestamp — this is how you receive replies typed by a human operator.

Session token from POST /api/channels/webchat/session

Parameters

sincestring · date-timequery

Return only messages created strictly after this timestamp.

Responses

200The transcript and handover state.
401The session token is missing, expired or does not match.
403The Origin is not on the widget's allowed-domains list.
404The session or widget no longer exists.
curl -X GET 'https://staging.useline.io/api/channels/webchat/events' \
  -H "Authorization: Bearer $LINE_SESSION_TOKEN" \
  -H 'Origin: https://example.com'