> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argyle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Choose how to initialize Argyle Link.

Argyle Link can be embedded in your application or launched as a hosted session URL. Choose the frontend integration based on where Link will run, then choose the authentication path based on the backend workflow your implementation uses.

## Choose how to integrate

> [card] [Web SDK](https://docs.argyle.com/link/initialization/web.md)
>
> Embed Link in a browser with the Web SDK.

> [card] [Mobile SDKs](https://docs.argyle.com/link/initialization/mobile-sdks.md)
>
> Embed Link with the iOS, Android, React Native, or Flutter SDKs.

> [card] [Hosted Link](https://docs.argyle.com/link/initialization/hosted-link.md)
>
> Launch a session URL directly in a browser or secure mobile browser context.

## Choose an authentication path

The backend workflow determines which value your frontend uses to start Link.

| Backend workflow | Frontend value | Use with |
| - | - | - |
| Direct embedded Link | `userToken` and `sandbox` | [Web SDK](https://docs.argyle.com/link/initialization/web.md) or [Mobile SDKs](https://docs.argyle.com/link/initialization/mobile-sdks.md) |
| Payroll verification session | Session `link` used as `connectUrl` | [Web SDK](https://docs.argyle.com/link/initialization/web.md) or [Mobile SDKs](https://docs.argyle.com/link/initialization/mobile-sdks.md) |
| Payroll verification session | Session `link` launched directly | [Hosted Link](https://docs.argyle.com/link/initialization/hosted-link.md) |

For direct embedded Link implementations, create a new user or refresh an existing user's token on your server, then initialize embedded Link with the returned `user_token`.

For payroll verification implementations, create a session via [`POST /v2/sessions`](https://docs.argyle.com/api-reference/verifications/create-a-session). The response includes a `link` URL. Pass that URL as `connectUrl` in an embedded Link SDK initialization, or launch it directly as Hosted Link.

> [!NOTE]
>
> Banking connections do not use Argyle Link. Create a banking verification session and pass its returned `link` to the [banking SDK](https://docs.argyle.com/verifications/verification-types/banking.md) as `connectURL`.

> [!NOTE]
>
> User tokens and session links both expire after one hour. Create a fresh user token before initializing Link with `userToken`, or create a new session link for an active payroll verification before initializing Link with `connectUrl` or launching Hosted Link.

## Required initialization parameters

Use either the `connectUrl` path or the `userToken` path. Do not pass both in the same Link initialization.

| Parameter | Type | Required when | Description |
| - | - | - | - |
| `connectUrl` | string | Initializing embedded Link from a payroll verification session | The session `link` URL returned when [creating a payroll session](https://docs.argyle.com/api-reference/verifications/create-a-session.md). Link's environment is encoded in the URL and does not need to be set with `sandbox`. |
| `userToken` | string | Initializing embedded Link through the user token flow | Token used to identify and authenticate users. See [User Tokens](https://docs.argyle.com/link/user-tokens.md). |
| `sandbox` | boolean | Initializing embedded Link through the user token flow | Determines Link's environment: `true` for Sandbox, `false` for Production. |

## Optional initialization parameters

> [!NOTE]
>
> `flowId`, `items`, and `language` can also be provided in the [verification session request](https://docs.argyle.com/verifications/quickstart.md#create-a-session).

> [!NOTE]
>
> Flow IDs are not environment-specific: the same Flow ID applies consistent behavior across both Sandbox and Production.

<table>
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`flowId`</td>
      <td>string</td>

      <td>
        ID used to [customize](https://docs.argyle.com/console/flows/embedded-experiences.md) the Link flow. Saved Flow IDs can be found in the [Flows](https://console.argyle.com/flows) section of Console.
      </td>
    </tr>

    <tr>
      <td>`items`</td>
      <td>array of strings</td>
      <td>Limits Link to the provided Items. Providing one Item skips Link search and opens that Item's login screen. Providing multiple Items shows only those Items.</td>
    </tr>

    <tr>
      <td>`accountId`</td>
      <td>string</td>
      <td>Used for [direct logins](https://docs.argyle.com/workflows/account-connections.md#direct-login) to an account that the user has previously connected or attempted to connect.</td>
    </tr>

    <tr>
      <td>`<Callback Name>`</td>
      <td>string</td>
      <td>[Callbacks](https://docs.argyle.com/link/reference/callbacks.md) are activated by specific events in embedded Link, such as account connection, errors, closure, and token expiration. Hosted Link does not support callbacks.</td>
    </tr>

    <tr>
      <td>`language`</td>
      <td>string</td>

      <td>
        Sets the display language in Link.

        > [!NOTE]
        >
        > **Possible values**:\\
        >
        > `EN` (English), `ES` (Spanish), `RU` (Russian), `ZH` (Chinese), `HT` (Haitian Creole, Web only)\\
        >
        > *\*Flutter uses lowercase `en`, `es`, `ru`, `zh`*

        <ul>
          <li>`EN` and `ES` are available across all platforms and employers</li>
          <li>`RU` and `ZH` currently limited to [gig platforms](https://docs.argyle.com/overview/data-structure/items.md#types-of-items)</li>
          <li>`HT` is available on Web only, across all payroll and gig platforms.</li>
          <li>Can be used in combination with other optional initialization parameters including `flowId`</li>
          <li>Certain platform-generated messages, such as multi-factor authentication prompts, will be shown as-received and depend on the user's language preferences selected within their platform's settings.</li>
          <li>In Console, you can test Spanish in Sandbox mode by changing the **Language** dropdown when previewing an **Embedded Experiences** Link Flow.</li>
        </ul>
      </td>
    </tr>
  </tbody>
</table>

## Next steps

* Use [Web SDK](https://docs.argyle.com/link/initialization/web.md) for browser-based embedded Link.
* Use [Mobile SDKs](https://docs.argyle.com/link/initialization/mobile-sdks.md) for native or cross-platform mobile SDK setup.
* Use [Hosted Link](https://docs.argyle.com/link/initialization/hosted-link.md) when you want to launch a session URL directly.
