LINE

App · Messaging · 4 actions

Send LINE messages from your official account, and look up the profiles of the people who follow it.

Actions

ActionWhat it does
Broadcast a messageSend a message to everyone following your official account.
Get a user's profileFetch the display name and picture of a user who has added your official account.
Get account infoFetch your own official account's name, basic ID, and picture.
Send a messageSend a message to one LINE user, group chat, or multi-person chat from your official account.

Broadcast a message

Send a message to everyone following your official account. LINE returns no identifier for a broadcast, so this action has no output. Limited to 60 broadcasts per hour.

Inputs

MessagetexttextRequired
The message to send. Up to 5000 characters.

Outputs

None.

Example output
{}

Get a user's profile

Fetch the display name and picture of a user who has added your official account.

Inputs

User IDline_user_idtextRequired
The LINE user ID, starting with 'U'. These arrive in the webhook events your official account receives.

Outputs

display_nametext
The user's display name
languagetext
The user's language as a BCP 47 tag such as 'en'. Empty until the user consents to LINE's privacy policy.
picture_urltext
The user's profile image, or empty if they haven't set one
status_messagetext
The user's status message, or empty if they haven't set one
user_idtext
The user's LINE ID
Example output
{
  "display_name": "Ada Lovelace",
  "language": "en",
  "picture_url": "https://profile.line-scdn.net/0hexample",
  "status_message": "Building things",
  "user_id": "U4af4980629..."
}

Get account info

Fetch your own official account's name, basic ID, and picture. Useful for confirming which account a workflow is connected to.

Inputs

None.

Outputs

basic_idtext
The account's basic ID, the '@'-prefixed handle people search for
display_nametext
The account's display name
picture_urltext
The account's profile image, or empty if none is set
user_idtext
The official account's own user ID
Example output
{
  "basic_id": "@216ru",
  "display_name": "Lodol Notifications",
  "picture_url": "https://profile.line-scdn.net/0hexample",
  "user_id": "Ub9952f8..."
}

Send a message

Send a message to one LINE user, group chat, or multi-person chat from your official account.

Inputs

Recipient IDtotextRequired
The LINE user ID, group ID, or room ID to send to. User IDs start with 'U' and arrive in the webhook events your official account receives -- this is not the public LINE ID people search for.
MessagetexttextRequired
The message to send. Up to 5000 characters.

Outputs

message_idslist
IDs LINE assigned to the message it sent. Useful for correlating with delivery reports.
Example output
{
  "message_ids": [
    "461230966842064897"
  ]
}

On this page