# Using LINE features with the LINE URL scheme

You can use the following URL scheme to open a sticker shop or LIFF app, or activate the camera from your service (This feature is called the LINE URL scheme). The LINE URL scheme can also be used with a LINE Official Account. For example, by setting up an action to open the LINE URL scheme in the rich menus, you can show the content in LINE to the user who taps on the menu.

  • https://line.me/R/
  • https://liff.line.me/
  • line:// (Deprecated)
"line://" is deprecated

line:// is deprecated because it allows a takeover attack of the URL scheme. A line:// takeover attack is an attack in which a user clicks on a URL following line:// and a non-LINE app may start regardless of the intention of the LINE user. This attack is only established under certain conditions.

# If the user hasn't installed LINE

If a user has LINE installed, the app is automatically launched and the user is redirected to the specified content when a user accesses a URL using the LINE URL Scheme. If the user does not have LINE installed, the behavior depends on the format of the LINE URL scheme as shown below.

LINE URL Scheme If the user hasn't installed LINE
https://line.me/R/ A web browser is opened with a prompt for the user to download LINE.
line:// (Deprecated) Nothing happens or the user is redirected to an error page.

# Operating environment

The LINE URL scheme is available on LINE for iOS or Android.

Note

The LINE URL scheme is not supported on the desktop version (macOS, Windows) of LINE.

# Available LINE URL schemes

The following URL schemes can be used in the specified operating environment.

# Opening the camera and camera roll to send an image

Opens the "Camera Roll" screen where users can select images to share in the chat.

This URL scheme is only supported in LINE chat.

This URL scheme is only supported in LINE chat. It is not supported on other types of chats, on LIFF apps or on apps other than LINE.

Camera screen Camera roll screen

LINE URL Scheme Description
https://line.me/R/nv/camera/ Opens the camera screen.
https://line.me/R/nv/cameraRoll/single Opens the "Camera Roll" screen. Users can select one image to share in the chat.
https://line.me/R/nv/cameraRoll/multi Opens the "Camera Roll" screen. Users can select multiple images to share in the chat.

# Sending location information

Open the location information screen and send the location information to the LINE Official Account.

This URL scheme is only supported in one-on-one chats between a user and a LINE Official Account.

It is not supported on other types of chats, on LIFF apps or on apps other than LINE.

Location screen

LINE URL Scheme Description
https://line.me/R/nv/location/ Opens the "Location" screen. Users can drop a pin on the map to select the location they want to share.

# Sharing a LINE Official Account

Encourage users and their friends to add LINE Official Accounts by recommending the specified LINE Official Account.

"Add friend" screen for LINE Official Account

LINE URL Scheme Description
https://line.me/R/ti/p/{LINE ID} Opens the "Add friends" screen for the specified LINE Official Account. If you are already a friend with the target LINE Official Account, you will open the one-to-one chat screen.
https://line.me/R/nv/recommendOA/{LINE ID} Opens the "Share with" screen Opens the "Share with" screen where users can select friends, groups, or chats to share a link to your LINE Official Account.
Do not URL encode the @ symbol in the LINE ID with this URL scheme

{LINE ID} replace with the LINE ID of your LINE Official Account. Note that the leading @ in the LINE ID should not be replaced with the URL-encoded %40 and should be left as @. For example, if the LINE ID is @linedevelopers use https://line.me/R/ti/p/@linedevelopers or https://line.me/R/nv/recommendOA/@linedevelopers.

Verify the LINE ID of the LINE Official Account

Find the LINE ID of your LINE Official Account in LINE Official Account Manager. For more information, see Share the LINE ID of your LINE Official Account.

# Opening the LINE Official Account's Timeline and account page

Opens the timeline and account page for the LINE Official Account.

LINE Official Account timeline

LINE URL Scheme Description
https://line.me/R/home/public/main?id={LINE ID without @} Opens the specified LINE Official Account timeline.
https://line.me/R/home/public/profile?id={LINE ID without @} Opens the account page for the specified LINE Official Account.
Note: This scheme is support in LINE v9.10.0 or later.
https://line.me/R/home/public/post?id={LINE ID without @}&postId={postId} Opens a specific timeline post for the specified LINE Official Account. Find the post ID of individual posts on the "Timeline" page in the "Home" tab of LINE Official Account Manager.
Do not include the @ symbol in the beginning of the LINE ID in this URL scheme.

Do not include the @ symbol in {LINE ID without @}. For example, if the LINE ID is @linedevelopers, use https://line.me/R/home/public/main?id=linedevelopers.

Verify the LINE ID of the LINE Official Account

Find the LINE ID of your LINE Official Account in LINE Official Account Manager. For more information, see Share the LINE ID of your LINE Official Account.

Post to the LINE Official Account Timeline

To post to the timeline of your LINE Official Account or to customize the account page, use LINE Official Account Manager.

# Sending text messages

Set text messages that users can send to their friends or to your LINE Official Account.

LINE URL Scheme Description
https://line.me/R/msg/text/?{text_message} Opens the "Share with" screen. You can select friends, groups, or chats to send a test message set to {text_message}. Users of LINE for Android can also post the message as a note in a chat or post the message to Timeline.
https://line.me/R/oaMessage/{LINE ID}/?{text_message} Opens the chat screen with the LINE Official Account. Set text messages in {text_message} that users can send to their friends or to your LINE Official Account.
"text_message" must be URL encoded.

Make sure text_message is URL encoded (percent encoded) in UTF-8. For example, if you are sending a text message "Hi there!" to LINE Official Account @linedevelopers, the URL scheme will be https://line.me/R/oaMessage/@linedevelopers/?Hi%20there%21.

Verify the LINE ID of the LINE Official Account

Find the LINE ID of your LINE Official Account in LINE Official Account Manager. For more information, see Share the LINE ID of your LINE Official Account.

# Opening profile information

Profile screen

Opens the user's "My profile" screen. From this screen, users can update their display names and status messages, set their LINE IDs and check various LINE profile information.

LINE URL Scheme Description
https://line.me/R/nv/profile Opens the user's "My profile" screen.
https://line.me/R/nv/profileSetId Opens the user's "LINE ID" screen. Users can set a LINE ID if they have not already done so.

# Opening common LINE screens

Opens various screens in LINE.

"More" screen

LINE URL Scheme Description
https://line.me/R/nv/chat Opens the "Chats" screen.
https://line.me/R/nv/timeline Opens the "Timeline" screen.
https://line.me/R/nv/more Opens the "Wallet" screen.
https://line.me/R/nv/addFriends Opens the "Add friends" screen.
https://line.me/R/nv/officialAccounts Opens the "Official Accounts" screen.

# Opening LINE settings screens

Redirect users to various screens in the "Settings" section of LINE.

Settings screen

LINE URL Scheme Description
https://line.me/R/nv/settings Opens the "Settings" screen.
https://line.me/R/nv/settings/account Opens the "Account" settings screen. Displays the user's LINE account information.
https://line.me/R/nv/connectedApps Opens the "Authorized apps" screen in the "Account" settings screen. Users can see the permissions granted to authorized apps and unlink apps from this screen.
https://line.me/R/nv/connectedDevices Opens the "Connected devices" screen in the "Account" settings screen.
https://line.me/R/nv/settings/privacy Opens the "Privacy" screen.
https://line.me/R/nv/things/deviceLink Opens the "LINE Things" settings screen. This screen is used to link devices to LINE and check which devices are already linked.
https://line.me/R/nv/settings/sticker Opens the "Stickers" settings screen.
https://line.me/R/nv/stickerShop/mySticker Opens the "My Stickers" screen in the "Stickers" settings screen.
https://line.me/R/nv/settings/themeSettingsMenu (iOS), https://line.me/R/nv/settings/theme (Android) Opens the "Themes" settings screen.
The scheme is different for iOS and Android.
https://line.me/R/nv/themeSettings Opens the "My Themes" screen in the "Themes" settings screen.
https://line.me/R/nv/notificationServiceDetail Opens the "Authorized apps" screen in the "Notification" settings. Users can configure notification settings for authorized apps in this screen.
https://line.me/R/nv/settings/chatSettings Opens the "Chats" settings screen.
https://line.me/R/nv/suggestSettings Opens the "Display suggestions" screen in the "Chats" settings.
https://line.me/R/nv/settings/callSettings Opens the "Calls" settings screen.
https://line.me/R/nv/settings/addressBookSync Opens the "Friends" settings screen.
https://line.me/R/nv/settings/timelineSettings Opens the "Timeline" settings screen.

# Opening the Sticker Shop

Opens the "Sticker Shop" screen in LINE to encourage purchase of official or creators' sticker sets.

"Sticker shop" Set

LINE URL Scheme Description
https://line.me/R/shop/sticker/detail/{package_id} Opens the "Sticker set info" screen for a specified sticker set. Specify the {package_id} number of the sticker page from the LINE STORE URL.
https://line.me/R/shop/category/{category_id} Displays the popularity ranking for the specified category. Specify the {category_id} number from the category page in the "Official Stickers" section of the LINE STORE URL.
https://line.me/R/shop/sticker/author/{author_id} Opens a list of sticker sets from a specified author. Specify the {author_id} number of the creator page from the LINE STORE URL.
https://line.me/R/nv/stickerShop Opens the "HOME" tab in the "Sticker shop" screen.
https://line.me/R/shop/sticker/hot Opens the "RANK" tab in the "Sticker Shop" screen.
https://line.me/R/shop/sticker/new Opens the "NEW" tab in the "Sticker Shop" screen.
https://line.me/R/shop/sticker/event Opens the "EVENT" tab in the "Sticker Shop" screen.
https://line.me/R/shop/sticker/category Opens the "CATEGORIES" tab in the "Sticker Shop" screen.
Create your own sticker set

To create your own sticker sets for users, use the LINE Creators Market site and the LNE Creators Studio app.

# Opening the Theme Shop

Opens the "Theme Shop" screen in LINE to encourage purchase of official or creators' theme.

Theme shop screen

LINE URL Scheme Description
https://line.me/R/shop/theme/detail?id={product_id} Opens the "Theme info" screen for a specified creators' theme. Specify the {product_id} number from the theme page in the "Official Theme" or "Creators Theme" section of the LINE STORE URL.

# Making phone calls with LINE Out

LINE Out is a service that lets users make phone calls on LINE. This opens the LINE Out screen. For example, you can specify any phone number to open in the "LINE Out" dial pad screen.

Note

LINE Out is not available in all countries. For more information, see the LINE Out How to use page.

"LINE Out" dialpad screen

LINE URL Scheme Description
https://line.me/R/call/{country_calling_code}/{phone_number} Opens the "LINE Out" dial pad screen with a preset phone number. Specify the country code and the phone number as path parameters. Do not include the "+" symbol in the URL. For example, https://line.me/R/call/81/09001234567 sets the country calling code to "+81" and the local phone number to "090-0123-4567".
https://line.me/R/calls Opens the "Calls" screen of LINE Out.
https://line.me/R/call/dialpad Opens the "LINE Out" dial pad screen.
https://line.me/R/call/settings Opens the "LINE Out Settings" screen.
https://line.me/R/call/contacts Opens the "Contacts" screen.
https://line.me/R/call/redeem Opens the "Redeem for LINE Out Credit" screen.

# Opening a LIFF app

Opens the specified LIFF app. A LIFF app is a web app built using the LINE Front-end Framework.

LIFF app

LINE URL Scheme Description
https://liff.line.me/{liffId} Opens the LIFF app specified by {liffId}. This URL is opened when you add the LIFF app to your channel on the LINE Developers console.
https://liff.line.me/{liffId}/path_A/path_B/?key1=value1&key2=value2 When opening the LIFF app specified by {liffId}, pass /path_A/path_B/?key1=value1&key2=value2 as additional information.
Redirect destinations

For more information on redirecting destinations when opening LIFF apps, see Opening a LIFF app.