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

# App Deep Linking

To enable deep linking for your referral campaigns, you need to configure the deep link URL in your mobile app. This allows your users to access specific content or actions directly through the referral links.

#### Step 1: Access the Deep Link Page

1. Log in to your Flock account at [app.withflock.com](https://app.withflock.com).
2. Navigate to the **Deep Link** page.

#### Step 2: Enter Your Deep Link Base URL

On the Deep Link page, enter the base URL you want to use for your referral deep links. Flock will automatically append /{referral_code} to this URL.

**Example:**

* If you enter [https://example.com/invite](https://example.com/invite) as your base URL, the final deep link for a referral will look like:

```
https://example.com/invite/{referral_code}
```

#### Step 3: Configure Deep Linking in Your Mobile App

1. **Define the Deep Link URL Scheme**:
   Ensure your mobile app is configured to handle the base URL. For example, in iOS, use **Universal Links**, and in Android, configure **App Links**.

2. **Handle the Referral Code**:
   In your app, extract the `referral_code` from the deep link URL and process it to verify and reward the referral.

#### Step 4: Test the Deep Link

After configuring your mobile app, test the deep link by replacing `{referral_code}` with a sample referral code. For example:

```
https://example.com/invite/sample-code
```

Ensure the link directs users to the appropriate content or action in your app.
