LINE Messaging
LINE Messaging API lets you develop two-way communication between your service and LINE users. Push and reply messages Push messages are messages that your bot can send to users at any time. Reply messages are messages that your bot sends in response to users' messages. 1-on-1 and group chats Send messages not only to users who have added your bot as a friend but also in group chats that your…
LINE Messaging endpoints
| Method | Endpoint | Description |
|---|---|---|
| OAuth | ||
| POST |
Issue channel access token /oauth/accessToken |
Issues a short-lived channel access token. |
| POST |
Revoke channel access token /oauth/revoke |
Revokes a channel access token. |
| Message | ||
| GET |
Get content /bot/message/{messageId}/content |
Gets image, video, and audio data sent by users. |
| POST |
Send reply message /message/reply |
Sends a reply message in response to an event from a user, group, or room. |
| GET |
Get number of sent reply messages /bot/message/delivery/reply |
Gets the number of messages sent with the /bot/message/reply endpoint. |
| Profile | ||
| GET |
Get profile /bot/profile/{userId} |
Gets user profile information. |
| Rich menu | ||
| GET |
Get rich menu ID of user /bot/user/{userId}/richmenu |
Gets the ID of the rich menu linked to a user. |
| GET |
Download rich menu image /bot/richmenu/{richMenuId}/content |
Downloads an image associated with a rich menu. |
| GET |
Get rich menu list /bot/richmenu/list |
Gets a list of all uploaded rich menus. |
| DELETE |
Delete rich menu /bot/richmenu/{richMenuId} |
Deletes a rich menu. |
| GET |
Get rich menu /bot/richmenu/{richMenuId} |
Gets a rich menu via a rich menu ID. |
| DELETE |
Unlink rich menu from user /bot/user/{userId}/richmenu |
Unlinks a rich menu from a user. |
| POST |
Create rich menu /bot/richmenu |
Creates a rich menu. You must upload a rich menu image, and set the rich menu as the default rich menu or link the rich menu to a user for the rich menu to be displayed. You can… |
| POST |
Link rich menu to user /bot/user/{userId}/richmenu/{richMenuId} |
Links a rich menu to a user. Only one rich menu can be linked to a user at one time. The rich menu is displayed in the following order of priority (highest to lowest): The… |
| POST |
Upload rich menu image /bot/richmenu/{richMenuId}/content |
Uploads and attaches an image to a rich menu. You can use rich menu images with the following specifications: Image format: JPEG or PNG Image size: 2500x1686 or 2500x843 pixels… |
| POST |
Unlink rich menus from multiple users /bot/richmenu/bulk/unlink |
Unlinks rich menus from multiple users. |
| POST |
Set default rich menu /bot/user/all/richmenu/{richMenuId} |
Sets the default rich menu. The default rich menu is displayed to all users who have added your LINE official account as a friend and are not linked to any per-user rich menu. |
| DELETE |
Cancel default rich menu /bot/user/all/richmenu |
Cancels the default rich menu set with the Messaging API. |
| POST |
Link rich menu to multiple users /bot/richmenu/bulk/link |
Links a rich menu to multiple users. |
| GET |
Get default rich menu ID /bot/user/all/richmenu |
Gets the ID of the default rich menu set with the Messaging API. |
| Account link | ||
| POST |
Issue link token /bot/user/{userId}/linkToken |
Issues a link token used for the account link feature. |
LINE Messaging pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|