# LINE

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

App · Messaging · 4 actions. Web page: https://docs.lodol.com/docs/integrations/line

## Actions

### 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 (`text`, text, required): The message to send. Up to 5000 characters.

**Outputs**: None.

**Example output**

```json
{}
```

### 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_id`, text, required): The LINE user ID, starting with 'U'. These arrive in the webhook events your official account receives.

**Outputs**

- `display_name` (text): The user's display name
- `language` (text): The user's language as a BCP 47 tag such as 'en'. Empty until the user consents to LINE's privacy policy.
- `picture_url` (text): The user's profile image, or empty if they haven't set one
- `status_message` (text): The user's status message, or empty if they haven't set one
- `user_id` (text): The user's LINE ID

**Example output**

```json
{
  "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_id` (text): The account's basic ID, the '@'-prefixed handle people search for
- `display_name` (text): The account's display name
- `picture_url` (text): The account's profile image, or empty if none is set
- `user_id` (text): The official account's own user ID

**Example output**

```json
{
  "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 (`to`, text, required): 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 (`text`, text, required): The message to send. Up to 5000 characters.

**Outputs**

- `message_ids` (list): IDs LINE assigned to the message it sent. Useful for correlating with delivery reports.

**Example output**

```json
{
  "message_ids": [
    "461230966842064897"
  ]
}
```
