# Using LINE features with the LINE URL scheme

You can use the following URL scheme to open a sticker shop or activate the camera from your service (This feature is called the LINE URL scheme).

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

line:// is deprecated because it allows a takeover attack of the URL scheme. A URL scheme takeover attack is an attack established when an app other than LINE specifies line:// in the custom URL scheme on the end user's smartphone. When a user clicks the LINE URL scheme, a non-LINE app may start regardless of the intention of the user or LINE.

The LINE URL scheme can also be used with a LINE bot application. For example, you can redirect users to content in LINE using various messages and rich menus by including URL schemes in the URI action objects.

# 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

LINE URL scheme is supported on LINE for iOS and Android. The LINE URL scheme is available on web, mobile, or bot apps.

Note

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

# Available LINE URL schemes

The following is a list of the available URL schemes for LINE.

# Opening the camera and camera roll

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

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.

# Opening the location screen

Opens the "Location" screen. Share location information with the LINE Official Account.

::: note: 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

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

# Sharing your LINE Official Account

Share and promote your LINE Official Account by redirecting users to the "Add friend" screen for your LINE Official Account. You can also let users share a link to the LINE Official Account with their LINE friends.

LINE Official Account screen "Add friend" screen for LINE Official Account

Scheme Description
https://line.me/R/ti/p/{LINE ID} Opens one of the following screens depending on the user's friendship status with the LINE Official Account.
  • A friend of the LINE Official Account: Opens a chat screen with the LINE Official Account
  • Not a friend of the LINE Official Account or blocked by user: Opens the "Add friend" screen for the LINE Official Account.
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 your LINE Official Account's timeline or account page

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

LINE Official Account timeline

Scheme Description
https://line.me/R/home/public/main?id={LINE ID without @} Opens the LINE Official Account timeline.
https://line.me/R/home/public/profile?id={LINE ID without @} Opens the account page of your 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 your 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.

# Sending text messages

Set text messages that users can send to their friends or to your LINE Official Account. Enter your text message as a query parameter in the scheme. Make sure that your query parameters are URL encoded (Percent-encoding) in UTF-8.

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.

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 "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.

Scheme Description
https://line.me/R/nv/profile Opens the "My profile" screen.
https://line.me/R/nv/profileSetId Opens the "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

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

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

Redirect users to the Sticker Shop section of LINE. You can redirect users to official or creators' sticker sets. To create your own sticker sets for users, use the LINE Creators Market site and the LNE Creators Studio app.

[Sticker shop]Set

# Official stickers

Scheme Description
https://line.me/R/shop/sticker/detail/{package_id} Opens the "Sticker set info" screen for a specified sticker set. Find the "package ID" on the sticker set pages' URL in the [Official sticker] section of the [LINE STORE] (https://store.line.me).
https://line.me/R/shop/category/{category_id} Displays the popularity ranking for the specified category. Find the "category ID" in the category pages' URL in the "Official stickers" section of the LINE STORE.
https://line.me/R/shop/sticker/author/{author_id} Opens a list of sticker sets from a specified author. Find the "author ID" in the author pages' URL in the "Official stickers" section of the LINE STORE.
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.

# Creators' stickers

Scheme Description
https://line.me/R/shop/sticker/detail/{package_id} Opens the "Sticker set info" screen for a specified sticker set. Find the "package ID" in the sticker set pages' URL in the "Creators' stickers" section of the LINE STORE.
https://line.me/R/shop/sticker/author/{author_id} Opens a list of sticker sets from a specified author. Find the "author ID" in the author pages' URL in the "Creators' stickers" section of the LINE STORE.

# Opening the Theme Shop

Redirect users to specific themes in the Theme Shop section of LINE. Use query parameters in the URL schemes to specify the ID of the theme.

Theme shope screen

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

# Making phone calls with LINE Out

LINE Out is a service that lets users make phone calls on LINE. You can redirect users to the LINE Out screens with a phone number set as a path parameter.

Note

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

[LINE Out]dialpad screen

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

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

LIFF app

Scheme Description
https://liff.line.me/{liffId} Opens the specified LIFF app. You can get the URL when you add the LIFF app to your channel on the [LINE Developers console][console]. When the user accesses this URL, the LIFF app starts either in an external browser or in LINE's in-app browser. The environment in which the LIFF app starts depends on the specifications for "universal links" (for iOS) or "App Links" (for Android).
line://app/{liffId} (Deprecated) Opens the specified LIFF app.