Skip to main content
LINE logo
  • Category: communication
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 17
  • Triggers: 1
  • Slug: LINE
  • Version: 20261101_00

Tools

Slug: LINE_CREATE_RICH_MENUCreate a rich-menu definition and return its ID. Creation alone does not display it: upload an image, then set it as default or link it to a user.

Input Parameters

string
required
Management-only rich-menu name (max 300 characters).
object
required
Rich-menu canvas size.
array
required
One to 20 tappable areas on the rich menu.
boolean
required
Whether the rich menu opens by default after it is linked.
string
required
Text shown in the chat bar (max 14 characters).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_CREATE_RICH_MENU_WITH_IMAGECreate a rich-menu definition and upload its JPEG or PNG image in one call; the finished menu must still be set as default or linked to a user to display. If image upload fails, the tool attempts to delete the new definition, but cleanup can also fail.

Input Parameters

string
required
Management-only rich-menu name (max 300 characters).
object
required
Rich-menu canvas size.
array
required
One to 20 tappable areas on the rich menu.
object
required
JPEG or PNG image matching the canvas size, at most 1 MiB, with width divided by height at least 1.45.
boolean
required
Whether the rich menu opens by default after it is linked.
string
required
Text shown in the chat bar (max 14 characters).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_DELETE_RICH_MENUPermanently delete a rich menu by ID. Delete only a menu the caller owns or explicitly intends to remove.

Input Parameters

string
required
Rich-menu ID to permanently delete.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_DOWNLOAD_MESSAGE_CONTENT_PREVIEWDownload LINE’s reduced-size preview image for a retained image or video message whose contentProvider.type is line.

Input Parameters

string
required
Message ID of an image or video from a webhook event.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_GET_FOLLOWER_INSIGHTReturn cumulative first-time friend additions, currently targetable users, and current blocks as of one UTC+9 date. The friend-add total does not decrease after blocks or account deletions. Counts can be unavailable while statistics are unready or out of service.

Input Parameters

string
required
Date in yyyyMMdd format, interpreted in UTC+9 (for example, 20260803).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_GET_MESSAGE_DELIVERY_COUNTGet the number of reply, push, multicast, or broadcast messages sent on one UTC+9 calendar date. A result can be unready, unavailable_for_privacy, or out_of_service instead of containing a count.

Input Parameters

string
required
Date in yyyyMMdd format, interpreted in UTC+9 (for example, 20260803).
string ("reply" | "push" | "multicast" | "broadcast")
required
Messaging endpoint whose sent-message count to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_GET_MESSAGE_DELIVERY_INSIGHTReturn aggregate counts of messages sent on one UTC+9 calendar date, broken down across Official Account Manager, Messaging API, and supported partner channels.

Input Parameters

string
required
Date in yyyyMMdd format, interpreted in UTC+9 (for example, 20260803).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_GET_RICH_MENUGet one Messaging API rich-menu definition by ID, including its canvas, tappable areas, and actions.

Input Parameters

string
required
Rich-menu ID to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_LIST_CHAT_MEMBER_IDSReturn one page of member user IDs for a group or legacy room containing the bot. Requires a verified or premium LINE Official Account; room applies only to legacy multi-person chats.

Input Parameters

string
required
Group or room ID from a webhook event source object. The bot must participate in the chat.
string ("group" | "room")
required
Use group for a current group chat, or room for a legacy multi-person chat.
string
Continuation cursor returned by the previous call. Repeat chat_type and chat_id when continuing. LINE cursors expire after 24 hours.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_LIST_FOLLOWER_IDSReturn one page of user IDs for friends of the LINE Official Account. This endpoint requires a verified or premium LINE Official Account and excludes blockers, deleted users, and users without profile consent.

Input Parameters

integer
Maximum user IDs requested for this page (1-1000). A page may contain fewer IDs while still returning a continuation cursor.
string
Continuation cursor returned by the previous call. Omit for the first page. LINE cursors expire after 24 hours.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_LIST_RICH_MENUSList all rich menus created through the Messaging API. Menus created in LINE Official Account Manager are not included.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_MARK_MESSAGES_AS_READMark all messages through a webhook-issued read token as read. The token must have been received by this exact bot; this operation cannot be undone.

Input Parameters

string
required
Read token from message.markAsReadToken in a webhook message event received by this bot.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_REPLY_TO_MESSAGEReply with one to five text messages using a single-use token from a LINE webhook. Call this within one minute of receiving the token. If LINE reports an expired, reused, or invalid token, wait for a new webhook event and use its new reply token; the failed token cannot be refreshed or retried.

Input Parameters

array
required
One to five text messages sent together as the webhook reply.
string
required
Single-use reply token from a LINE webhook message event. Use it within one minute of receiving the webhook; an expired, reused, malformed, or wrong-channel token is rejected and cannot be retried with the same token.
boolean
Whether to send the reply without a push notification to the user.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_SEND_PUSH_MESSAGEIrreversibly send one to five text messages from a LINE Official Account to a webhook/API userId, groupId, or roomId. The destination is never a user’s visible LINE ID.

Input Parameters

string
required
Webhook/API userId, groupId, or roomId of the destination. This is never a user’s visible LINE ID.
array
required
One to five strict text-message objects to send in order.
string
UUID idempotency key. One is generated when omitted so automatic retries reuse it safely. Supply a key to retry the exact same request across action executions. LINE retains accepted keys for 24 hours; reuse after that window can send the message again.
boolean
Whether to send the push message without a user notification.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_SET_OR_CLEAR_DEFAULT_RICH_MENUSet or clear the Messaging API default rich menu. Setting requires an image-backed rich menu; clearing does not delete the menu and does not clear a default managed in LINE Official Account Manager.

Input Parameters

string ("set" | "clear")
required
Set an image-backed rich menu as the Messaging API default, or clear that default.
string
Rich-menu ID to set as default. Required when operation is set and must be omitted when operation is clear.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LINE_UPLOAD_RICH_MENU_IMAGEUpload a JPEG or PNG image for a rich menu. An image cannot be replaced for the same rich-menu ID; create a new menu to use another image.

Input Parameters

object
required
JPEG or PNG image, at most 1 MiB, 800-2500 px wide, at least 250 px high, with width divided by height at least 1.45.
string
required
Rich-menu ID returned by Create Rich Menu.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not

Triggers

Slug: LINE_MESSAGE_RECEIVEDType: webhookFires when someone sends a message to your LINE Official Account.Covers 1:1 chats, groups and multi-person rooms, and every message type LINE delivers. Reply within one minute using reply_token, or send a push message to user_id at any time after that.

Payload

string
Group ID, when the message arrived in a group chat.
object
required
The message that was sent.
string
Single-use token for replying to this exact message. LINE requires it to be used within one minute of the event; after that reply with a push message addressed to user_id instead. Absent on the rare events LINE does not allow a reply to.
string
Room ID, when the message arrived in a multi-person chat.
string ("user" | "group" | "room")
Whether the message came from a 1:1 chat, group, or room. Absent when LINE does not attribute the message to a conversation.
integer
required
When the event occurred, in milliseconds since the epoch.
string
LINE user ID of the sender. Use it to send a push message later, once the reply token has expired. Absent when LINE cannot attribute the message to a user.