# 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="/files/2CFTNrjsyXMPwTZnHEcE" 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="/files/erHg9Hs46HFeROUVM6Po" 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="/files/51TEyLLx9VmPH7izNFKf" 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="/files/QAqIIe9PkCZyuAUn1I0h" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://user.netmera.com/netmera-developer-guide/platforms/web/deep-linking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
