# Deep Linking

### Adding Deep Links in REST API

After creating a web transactional push from the panel, you can customize the desired Deeplink using the sample code in the API & Config step (in Postman). Here's an example:

```json
curl --location 'https://restapi.netmera.com/rest/3.0/sendNotification' \
-H "X-netmera-api-key: your_rest_api_key" \
-H "Content-Type: application/json" \
-d '{
    "notificationKey": "1000",
    "target": {
        "extId": "exidn"
    },
    "message": {
        "params": {},
        "click": {
            "deeplink": "https://www.netmera.com?id=5&name=@{exid}&cat=webpush"
        }
    }
}'
```

{% hint style="warning" %}

* **Ensure Deeplink Parameters Match User Data**\
  Parameters like `@{extID}` must match the user’s profile data. If not, the notification delivery will fail. Double-check that parameters used in the Deeplink exist in the user data.
* **Add Deeplink in "Click" Node**\
  Set the Deeplink directly in the **click** **node** as `deeplink`. Parameters like `@{parameter}` should be replaced with actual profile attributes.
  {% endhint %}

### Adding Deep Links on Netmera Panel

{% hint style="info" %}
**Creating a Web Transactional Push:**

To learn how to create a Web Transactional Push on the Netmera Panel, please refer to our [**User Guide**](https://user.netmera.com/netmera-user-guide/) for step-by-step instructions and detailed information.
{% endhint %}

#### Step 1: Create a New Deeplink

* Log into the Netmera Panel.
* Go to **Developers** > **Deeplinks**.
* Click **Create New Deeplink**.

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2FcaQEguCjvx8TJ4Dhtj7e%2FScreenshot%202023-12-20%20at%2012.43.24.png?alt=media&#x26;token=ac7bfa7e-312f-4492-b296-32445386c3b6" alt=""><figcaption></figcaption></figure>

#### Step 2: Provide Deeplink Details

* **Deeplink Name**: Give a unique name for the Deeplink.
* **Deeplink URL**: Use placeholders like `https://www.netmera.com@{age}`, where parameters are in `{}`.

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2F4bwvKUuxhvfT8wDoGANh%2FScreenshot%202023-12-20%20at%2012.46.50.png?alt=media&#x26;token=cc8446d2-7a5e-4133-96df-d2de26b9d8bd" alt=""><figcaption></figcaption></figure>

#### Step 3: Define Deeplink Parameters

* **@{parameter}**: Refers to Profile Attributes set on the Netmera Panel. These parameters change based on the user’s profile data. For example, `https://www.netmera.com/alex` or `https://www.netmera.com/jimmy`.
* **{parameter}**: This is defined in **Deeplink Parameters** and is used across all users in the campaign. For example, if `{parameter}` is `{city}`, it will appear as `https://www.netmera.com/london` for all users.

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2Fke2GDO2aO5AUFebhcpdu%2FScreenshot%202023-12-20%20at%2013.25.01.png?alt=media&#x26;token=5cf8a578-9d46-4bdf-8755-03bb0f9ded46" alt=""><figcaption></figcaption></figure>

#### Step 4: Configure Deeplink Parameters

Once saved, you can use parameters like `{city}` in the Deeplink URL. For example, if `{city}` is set as **London**, users will receive `https://www.netmera.com/london`.

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2Fwy7WEun4bnFUUifIBtIg%2FScreenshot%202023-12-20%20at%2013.12.33.png?alt=media&#x26;token=b76557f9-4b13-4118-ae46-f34a86070bfd" alt=""><figcaption></figcaption></figure>
