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

# LiveSwitch

> Integrate your application with the LiveSwitch Public API

## 🚀 Quickstart

Connect to LiveSwitch with Nango and make your first API request.

<Steps>
  <Step id="create-integration" title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to the **Integrations** tab, select **Configure New Integration**, then select **LiveSwitch**. In **Scopes**, add `openid`, `profile`, `email`, and `me` for this quickstart. The `offline_access` scope is selected by default.

    <Accordion title="For agents">
      Ask the user to sign in to Nango and create an Environment API key under **Environment Settings > API Keys**. Send it as `Authorization: Bearer <NANGO-API-KEY>` when calling Nango's HTTP APIs.

      Create the LiveSwitch integration with [`POST /integrations`](/docs/reference/backend/http-api/integration/create), setting `provider` to `liveswitch`, choosing a `unique_key` for the integration ID, and supplying the OAuth credentials described in the setup guide below. Include `openid`, `profile`, `email`, `me`, and `offline_access` in the comma-separated `credentials.scopes` value. To initiate authorization, create a short-lived session with [`POST /connect/sessions`](/docs/reference/backend/http-api/connect/sessions/create), include that integration ID in `allowed_integrations`, and open the returned `connect_link` so the user can complete LiveSwitch's interactive OAuth flow.
    </Accordion>
  </Step>

  <Step id="authorize-liveswitch" title="Authorize LiveSwitch">
    Go to the **Connections** tab, select **Add Test Connection**, then select **Authorize**. Log in as a LiveSwitch user and approve the requested access. An organization administrator is required when your integration requests webhook permissions.
  </Step>

  <Step id="call-api" title="Call the LiveSwitch API">
    Fetch the current user. This request requires the `me` scope selected in the first step. Replace the placeholders below with your Nango API key, integration ID, and connection ID:

    <Tabs>
      <Tab title="cURL">
        ```bash theme={null}
        curl "https://api.nango.dev/proxy/v1/me" \
          -H "Authorization: Bearer <NANGO-API-KEY>" \
          -H "Provider-Config-Key: <INTEGRATION-ID>" \
          -H "Connection-Id: <CONNECTION-ID>"
        ```
      </Tab>

      <Tab title="Node">
        Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

        ```typescript theme={null}
        import { Nango } from '@nangohq/node';

        const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });

        const res = await nango.get({
            endpoint: '/v1/me',
            providerConfigKey: '<INTEGRATION-ID>',
            connectionId: '<CONNECTION-ID>'
        });

        console.log(res.data);
        ```
      </Tab>
    </Tabs>

    ✅ You're connected! Check the **Logs** tab in Nango to inspect requests.
  </Step>

  <Step id="implement-nango" title="Implement Nango in your app">
    Follow Nango's [Auth implementation guide](/docs/guides/primitives/auth). To obtain production LiveSwitch credentials, follow the setup guide below.
  </Step>
</Steps>

## 📚 LiveSwitch integration guides

* [How to register your own LiveSwitch API OAuth app](/docs/api-integrations/liveswitch/how-to-register-your-own-liveswitch-api-oauth-app)
  Request a LiveSwitch Developer App and configure its callback URL and scopes.

Official docs: [LiveSwitch API documentation](https://developer.liveswitch.com/)

## 🧩 Pre-built syncs & actions for LiveSwitch

Enable them in your dashboard. Extend and customize to fit your needs.

*No pre-built syncs or actions available yet.*

<Tip>Not seeing the integration you need? [Build your own](/docs/guides/functions/functions-guide) independently.</Tip>

***
