The Channels API supports many of the features of Line; however, due to the omni-channel nature of the API, there may be some differences between the Channels API message and the native Line API.To send a Line message, you must have an active Line channel and perform an HTTP request to the following endpoint with a valid access key
If set to true, the frequency capping settings of the platform will be used
to either allow or reject the message to a contact. Can only be set to true
if the message is sent to a contact and .meta.extraInformation.useCase is marketing.
enableLinkTrackingboolean
If set to true and message is a test/campaign message, web tracking parameters will be appended to the links in the message.
tagsTags (array of Name-3 (string))
Tags to associate with the message. Tags are converted to lower case and tags
that do not exist are automatically created. You can view your created tags
in the UI. You can specify up to 10 tags per message.
shortLinksnullable ShortLinks (object)
SMS link shortening options. When using templates, please refer to
the template level shortLinks instead.
scheduledForScheduledFor (string (date-time))
Scheduled time to send message at. Must be formated as RFC3339 timestamp. When
set, the message status will be scheduled until it's sent. Messages scheduled
for a time in the past or within 10 minutes of the request may be sent
immediately. Messages scheduled farther than 35 days will be rejected.
validityValidity (integer)
Validity determines for how many seconds a message is valid. If none is provided, the channel message type will be used to determine it.
A promotional, conversational or transactional channel message is valid for 36 hours (129600 seconds). A message sent from a 2FA channel is valid for 10 minutes (600 seconds).
This field is used to store additional information related to the message status.
failurenullable Failure (object)
tagsTags (array of Name-3 (string))
Tags to associate with the message. Tags are converted to lower case and tags
that do not exist are automatically created. You can view your created tags
in the UI. You can specify up to 10 tags per message.
shortLinksnullable ShortLinks (object)
SMS link shortening options. When using templates, please refer to
the template level shortLinks instead.
scheduledForScheduledFor (string (date-time))
Scheduled time to send message at. Must be formated as RFC3339 timestamp. When
set, the message status will be scheduled until it's sent. Messages scheduled
for a time in the past or within 10 minutes of the request may be sent
immediately. Messages scheduled farther than 35 days will be rejected.
You can send messages to users who have added your LINE Official Account as a friend or in group chats and multi-person chats that your LINE Official Account has joined. Additionally, you can send messages to users who have sent a message to your LINE Official Account within the past seven days.
The Channels API supports many of the features of Line; however, due to the omni-channel nature of the API, there may be some differences between the Channels API message and the native Line API. Here is an overview of the Line message types and Channels API message types:
{"type":"text","text": {"text":"Single text message" }}
Text message with emoji
To include an emoji in a text message, specify the product ID and emoji ID within the text message object. Set the index, productId, and emojiId properties, as shown in the example below. These properties can be found in text.metadata.line.emoji.items. Refer to the official documentation for detailed LINE emoji definitions.
You can send any outbound message as a reply to a previous message by setting the replyTo object as shown below. The replyTo.id should be set to the id of a received message and the replyTo.type should be set to "message".