Skip to content
LINE logo

Connectors / Communication · HTTP Connector

LINE integration and API

Send a reply message, create a rich menu and create an audience in LINE, and start a workflow when LINE sends “Message received”.

What can you do with LINE on Tray.ai?

LINE is a messaging app; its Messaging API lets a LINE Official Account send and reply to messages, manage rich menus and audiences, and read engagement stats. Tray.ai connects to LINE through the HTTP Connector, so your workflows can call the LINE API alongside the rest of your stack.

  • When LINE sends “Message received”, create a ticket in your help desk so an agent can reply.
  • Send a push message on LINE when an order ships in your e-commerce platform.
  • When LINE sends “Followed”, add the new follower to your CRM.
  • Send a reply message on LINE when an agent answers the ticket in your help desk.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.line.me

Set it up

Connect LINE to Tray.ai

Each step uses LINE's own API details, from its documentation.

Save LINE's API token

Save the token LINE issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.line.me as the base URL. Or paste a cURL example from LINE's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Get message quota”

It's one of 20 documented actions, under Messages. The response comes back as data the next step can map into your other apps.

Start workflows from LINE events

Give LINE the URL of a Tray.ai webhook trigger. “Message received” can then start a workflow, and so can 8 other events.

Workflows to build with LINE

Connect LINE with Zendesk, Shopify and HubSpot

Each one uses actions and events from LINE's own API documentation.

Open Zendesk tickets from LINE messages

When

Message received

Then

  1. Get a user profile in LINE
  2. Create a ticket in Zendesk with the message and sender name

With Zendesk

Send LINE order updates when Shopify orders ship

When

An order is fulfilled in Shopify

Then

  1. Send a push message in LINE to the customer with tracking details
  2. Add a note to the order in Shopify that the customer was notified

With Shopify

Add new LINE followers to HubSpot

When

Followed

Then

  1. Get a user profile in LINE
  2. Create a contact in HubSpot with the LINE display name

With HubSpot

Apps you can build on LINE data

Internal tools your team can build with an AI assistant, each one using LINE calls from its API documentation.

Customer message inbox

Shows incoming messages with the sender's profile and lets an agent send a reply.

Account audience report

Shows follower counts, delivery counts and friend demographics over time.

Broadcast planner

Shows remaining message quota and lets marketing send a broadcast.

LINE MCP server for AI agents

Build an MCP server on LINE in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Send a reply message
  • Get a user profile
  • Get group member count
  • Create a rich menu
  • Create an audience
  • Get delivery counts
  • Send a push message
  • Send a multicast message

What the LINE API covers

6 resources and 20 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Messages

  • Send a reply message
  • Send a push message
  • Send a multicast message
  • Send a broadcast message
  • Get message quota

Users

  • Get a user profile
  • List followers

Groups

  • Get group member count
  • Get group member profile
  • Leave a group

Rich menus

  • Create a rich menu
  • List rich menus
  • Set the default rich menu
  • Delete a rich menu

Audiences

  • Create an audience
  • Rename an audience
  • Delete an audience

Insights

  • Get delivery counts
  • Get follower counts
  • Get friend demographics

Events LINE can send to a Tray.ai webhook trigger

  • Message received
  • Message unsent
  • Followed
  • Unfollowed
  • Joined a group
  • Left a group
  • Member joined
  • Member left
  • Postback received

Checked against LINE's own documentation on 2026-10-22

developers.line.biz/en/reference/messaging-api

Frequently asked questions

What can a Tray.ai workflow do in LINE?

The LINE API documents 20 actions across 6 resources (Messages, Users, Groups, Rich menus, Audiences, Insights). For example: Send a reply message; Get a user profile; Get group member count. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with LINE?

The LINE API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which LINE events can start a Tray.ai workflow?

LINE sends 9 events to a webhook URL, for example: Message received; Message unsent; Followed; Unfollowed; Joined a group; Left a group; Member joined; Member left. A Tray.ai webhook trigger receives them and starts a workflow.

See LINE working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.