> For the complete documentation index, see [llms.txt](https://user.netmera.com/netmera-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://user.netmera.com/netmera-developer-guide/platforms/web/deep-linking.md).

# 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%2FIwcV6NHQ6G2gajfmqTJu%2Fimage.png?alt=media&amp;token=92237e81-1e49-4c67-829d-e780df4bd075" alt=""><figcaption></figcaption></figure>

#### Step 2: Provide Deeplink Details

* **Deeplink Name:** Enter a unique name for the deeplink.
* **Deeplink URL:** Enter the destination URL for the deeplink. You can use parameters in the URL path or query string.

Use `{param}` when the value should be entered manually. When this format is used, a value field appears below the URL field.

**Example**:

`https://www.example.com/campaign/{campaignId}`

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2FX5Y1oaF78cM7uiFuZ5CJ%2Fimage.png?alt=media&amp;token=88697a02-fb18-4fa4-ad97-e8f9db347271" alt="" width="563"><figcaption></figcaption></figure>

Use `@{param}` when the value should be resolved automatically from the user profile. No manual value field appears for this format.

**Example:**

`https://www.example.com/profile/@{age}`

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2FJzsehiIRgUtzKmFXiSl6%2Fimage.png?alt=media&amp;token=9a6aec60-88d0-43ae-a403-9a87b0246918" alt="" width="563"><figcaption></figcaption></figure>

You can also use parameters in the query string.

Example:

`https://www.example.com?age=@{age}`

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2FhwJdvS2cU38n5ssDNvGm%2Fimage.png?alt=media&amp;token=3f9b2887-a318-4a74-a773-31fd58c19b63" alt="" width="563"><figcaption></figcaption></figure>

#### Step 3: Define Deeplink Parameters

If the URL includes `{param}`, enter its value in the Deeplink Parameters section. This value is used for all users who receive the deeplink.

Example:

`https://www.example.com/{city}`

If `{city}` is defined as `London`, the deeplink resolves as:

`https://www.example.com/London`

<figure><img src="https://2578508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0bOAscrXzPSujyzq8DEz%2Fuploads%2FshaIB3R3Ya0mT3LRS6Xw%2Fimage.png?alt=media&amp;token=62a41f0a-818c-4434-930c-51db166d6cfa" alt="" width="563"><figcaption></figcaption></figure>

Parameters in the `@{parameter}` format are resolved automatically from the user's profile attributes. No manual value is required for these 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&amp;token=b76557f9-4b13-4118-ae46-f34a86070bfd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
