# LINE onboarding flow

**1.** Create a new LINE contact (use the [Add a contact and/or advisors to a contact](https://rest-api-federation.symphony.com/contact#add-a-contact-and-or-advisors-to-a-contact) API).

* If the contact is onboarded for the first time, they will receive an invitation email with complete instructions on how to authenticate their identity via the LINE app.
* Check if the user has completed their onboarding:
  * In the LINE Connect app: Check if the contact’s card shows the status *CONFIRMED*.
  * Using the [List or search for contact](https://rest-api-federation.symphony.com/search#list-or-search-for-contacts) API: Look for `"status": "CONFIRMED"` in the API response.

**2.** Create a room (use the [Create room](https://rest-api-federation.symphony.com/room#create-room) API).

**3.** Get the available LINE channels (also known as *LINE Official Accounts*) that can be used to communicate with the contact in the room (use [List available channel connectors](https://rest-api-federation.symphony.com/tenant#list-emp-connector-available-for-one-or-multiple-contacts) API). This is not required if the LINE channel automatic selection is enabled for your company of federation group.

**4.** Add the new contact to the room, specifying one available LINE channel (*LINE Official Account*) ID (use the [Add room member](https://rest-api-federation.symphony.com/room#add-room-member) API). To trigger automatic LINE channel selection (if enabled for your company or federation group), keep the LINE channel field empty.

The contact will receive a push message, inviting them to add the automatically or manually selected LINE official account as a friend in the LINE app.

<figure><img src="https://3868048845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRJrT3ZeHQnYGnLALMybb%2Fuploads%2Fgit-blob-ee92e1508342d5f4f463dd1438f626faae31f369%2FLINE%20onboarding%20flow.png?alt=media" alt=""><figcaption></figcaption></figure>
