Volver al catálogo

LINE

line

Use a LINE Official Account's Messaging API channel to manage messages, audiences, and rich menus.

Acciones
13
Triggers
1
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (13)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create Rich MenuLINE_CREATE_RICH_MENUAcción

Create 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.

Parámetros de entrada

  • namestringObligatorio

    Management-only rich-menu name (max 300 characters).

  • sizeobjectObligatorio

    Rich-menu canvas size.

  • areasobject[]Obligatorio

    One to 20 tappable areas on the rich menu.

  • selectedbooleanObligatorio

    Whether the rich menu opens by default after it is linked.

  • chat_bar_textstringObligatorio

    Text shown in the chat bar (max 14 characters).

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Rich Menu with ImageLINE_CREATE_RICH_MENU_WITH_IMAGEAcción

Create a rich-menu definition and upload its JPEG or PNG image in one call. If image upload fails, the newly created definition is deleted automatically. The finished menu must still be set as default or linked to a user to display.

Parámetros de entrada

  • namestringObligatorio

    Management-only rich-menu name (max 300 characters).

  • sizeobjectObligatorio

    Rich-menu canvas size.

  • areasobject[]Obligatorio

    One to 20 tappable areas on the rich menu.

  • imageobjectObligatorio

    JPEG or PNG image matching the canvas size, at most 1 MiB, with width divided by height at least 1.45.

  • selectedbooleanObligatorio

    Whether the rich menu opens by default after it is linked.

  • chat_bar_textstringObligatorio

    Text shown in the chat bar (max 14 characters).

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Rich MenuLINE_DELETE_RICH_MENUAcción

Permanently delete a rich menu by ID. Delete only a menu the caller owns or explicitly intends to remove.

Parámetros de entrada

  • rich_menu_idstringObligatorio

    Rich-menu ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Download Message Content PreviewLINE_DOWNLOAD_MESSAGE_CONTENT_PREVIEWAcción

Download LINE's reduced-size preview image for a retained image or video message whose contentProvider.type is line.

Parámetros de entrada

  • message_idstringObligatorio

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

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Message Delivery CountLINE_GET_MESSAGE_DELIVERY_COUNTAcción

Get 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.

Parámetros de entrada

  • datestringObligatorio

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

  • message_typestringObligatorioenum

    Messaging endpoint whose sent-message count to retrieve.

    replypushmulticastbroadcast

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Rich MenuLINE_GET_RICH_MENUAcción

Get one Messaging API rich-menu definition by ID, including its canvas, tappable areas, and actions.

Parámetros de entrada

  • rich_menu_idstringObligatorio

    Rich-menu ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Link or Unlink User Rich MenuLINE_LINK_OR_UNLINK_USER_RICH_MENUAcción

Link or unlink a per-user rich menu. WARNING: LINE can return HTTP 200 even when nothing changed for a nonexistent, deleted, blocked, non-friend, or cross-channel user; success confirms request acceptance, not the assignment effect.

Parámetros de entrada

  • user_idstringObligatorio

    LINE user ID from a webhook source object, not a searchable LINE ID. HTTP 200 does not prove that this user was eligible or changed.

  • operationstringObligatorioenum

    Link or unlink the user's per-user rich menu. LINE may return HTTP 200 even when no assignment changes.

    linkunlink
  • rich_menu_idstring

    Image-backed rich-menu ID. Required for link and omitted for unlink. Request acceptance does not verify that LINE changed the user's link.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Chat Member IDsLINE_LIST_CHAT_MEMBER_IDSAcción

Return 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.

Parámetros de entrada

  • chat_idstringObligatorio

    Group or room ID from a webhook event source object. The bot must participate in the chat.

  • chat_typestringObligatorioenum

    Use group for a current group chat, or room for a legacy multi-person chat.

    grouproom
  • next_cursorstring

    Continuation cursor returned by the previous call. Repeat chat_type and chat_id when continuing. LINE cursors expire after 24 hours.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Follower IDsLINE_LIST_FOLLOWER_IDSAcción

Return 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.

Parámetros de entrada

  • limitinteger

    Maximum user IDs requested for this page (1-1000). A page may contain fewer IDs while still returning a continuation cursor.

  • next_cursorstring

    Continuation cursor returned by the previous call. Omit for the first page. LINE cursors expire after 24 hours.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Rich MenusLINE_LIST_RICH_MENUSAcción

List all rich menus created through the Messaging API. Menus created in LINE Official Account Manager are not included.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Mark Messages as ReadLINE_MARK_MESSAGES_AS_READAcción

Mark 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.

Parámetros de entrada

  • mark_as_read_tokenstringObligatorio

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

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set or Clear Default Rich MenuLINE_SET_OR_CLEAR_DEFAULT_RICH_MENUAcción

Set 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.

Parámetros de entrada

  • operationstringObligatorioenum

    Set an image-backed rich menu as the Messaging API default, or clear that default.

    setclear
  • rich_menu_idstring

    Rich-menu ID to set as default. Required when operation is set and must be omitted when operation is clear.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Upload Rich Menu ImageLINE_UPLOAD_RICH_MENU_IMAGEAcción

Upload 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.

Parámetros de entrada

  • imageobjectObligatorio

    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.

  • rich_menu_idstringObligatorio

    Rich-menu ID returned by Create Rich Menu.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Triggers (1)

Los triggers son eventos externos que pueden iniciar un flujo en tus agentes (ej: nuevo email, mensaje recibido, registro creado).

Message ReceivedLINE_MESSAGE_RECEIVEDTrigger

Fires 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.

Configuración

Sin parámetros.

Payload del evento

  • group_idstring

    Group ID, when the message arrived in a group chat.

  • messageobjectObligatorio

    The message that was sent.

  • reply_tokenstring

    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.

  • room_idstring

    Room ID, when the message arrived in a multi-person chat.

  • source_typestringenum

    Whether the message came from a 1:1 chat, group, or room. Absent when LINE does not attribute the message to a conversation.

    usergrouproom
  • timestampintegerObligatorio

    When the event occurred, in milliseconds since the epoch.

  • user_idstring

    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.

Instrucciones

**Instructions for Setting Up the Trigger:** LINE allows only one webhook URL per Messaging API channel, and this trigger takes that slot. **Connecting replaces any webhook URL already set on the channel** — if another tool or your own bot server is using it, that stops receiving events. 1. On the **Basic settings** tab of your channel in the LINE Developers Console, copy the **Channel secret** and enter it when you connect. This is not the channel access token, and reading it needs Admin rights on the channel. 2. Open the **Messaging API** tab and enable **Use webhook**. LINE exposes no API for this switch, so Composio cannot turn it on for you and no events arrive until you do. Composio sets the webhook URL itself when the trigger is created. There is nothing for you to copy or paste. **Removing the Trigger:** LINE has no way to clear a webhook URL — it can only be overwritten — so deleting this trigger leaves your channel still pointing at Composio. To stop delivery, turn off **Use webhook** on the Messaging API tab in the Console (or point **Webhook URL** at another tool). Disconnecting the account in Composio stops delivery on Composio's side regardless.