LINE
App · Messaging · 6 actions
Send LINE messages from your official account, and look up the profiles of the people who follow it.
Actions
| Action | What it does |
|---|---|
| Broadcast a message | Send a message to everyone following your official account. |
| Get a user's profile | Fetch the display name and picture of a user who has added your official account. |
| Get account info | Fetch your own official account's name, basic ID, and picture. |
| Send a message | Send a message to one LINE user, group chat, or multi-person chat from your official account. |
| Send a message to several people | Send the same message to up to 500 people at once from your official account. |
| Send an image | Send a picture, by its public link, 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
- Message
texttextRequired - 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 ID
line_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 ID
totextRequired - 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.
- Message
texttextRequired - 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"
]
}Send a message to several people
Send the same message to up to 500 people at once from your official account. Only people, not group chats. Each person counts toward your account's monthly message allowance.
Inputs
- Recipient IDs
totextRequired - The LINE user IDs to send to, each starting with 'U', separated by commas or one per line, or a list from an earlier step. They arrive in the webhook events your official account receives.
- Message
texttextRequired - The message to send. Up to 5000 characters.
Outputs
countnumber- How many people it was sent to
recipientslist- The user IDs the message was sent to
Example output
{
"count": 2,
"recipients": [
"U4af4980629...",
"U7c1e2b9a10..."
]
}Send an image
Send a picture, by its public link, to one LINE user, group chat, or multi-person chat from your official account.
Inputs
- Recipient ID
totextRequired - 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.
- Image link
image_urltextRequired - A public https:// link to a JPEG or PNG of up to 10 MB.
- Preview link
preview_urltext - Optional. A link to a smaller copy (JPEG or PNG, up to 1 MB) shown in the chat. Leave blank to use the image itself, if it is 1 MB or less.
Outputs
message_idslist- The ID LINE gave the message it sent
Example output
{
"message_ids": [
"461230966842064898"
]
}