---
title: External User Profile ('Allow to open external profile' toggle)
updatedAt: 2026-09-08T15:14:25.622Z
---

Fetch the complete documentation index at: https://docs.watchers.io/llms.txt

# External User Profile ('Allow to open external profile' toggle)

*Users will be able to open each other's profiles from the dropdown menu on a message, or by tapping on an avatar.*

If you have user profiles on your platform and prefer to link them to each other, please study the needed documentation. When everything is prepared, enable this toggle to provide users opportunity to open each others’ profiles on a chat. Then choose please what type of transmission you will use: GET parameters or post message.

**Please note that you cannot activate both internal and external profiles at the same time.**

<img src="https://docs-assets.watchers.io/docs/readme/19dc0b5b1d730ba0f5b47fe80dae4a1ea0dcae09c1a440d02c1fb19a567858dc-Untitled-69.png" alt="" width="400" class="img-center">

## Technical part for such an activation

There are two types of integration available:

### **1. PostMessage Integration**

When a user clicks the "Open Profile" button or on an avatar, a **`postMessage`** will be sent containing the following data:

```jsx
{
  "type": "social",
  "body": {
    "action": "open_profile",
    "data": {
      "user_id": "double_encrypted_userId"
    }
  }
}
```

Upon receiving this message, you need to decrypt the **`user_id`** twice to retrieve the original user ID (if necessary) and then open the user profile on your side.

<img src="https://docs-assets.watchers.io/docs/readme/36987d750f8a3ac56e05be05bc2c24ff8db0926049bd61036045a5c95133a83b-Copybetting20_20Profile20Consulting1.jpg" alt="" width="500" class="img-center img-border">

### **2. GET Parameter Link Integration**

When opening a WebView or Iframe, you should include a new GET parameter that specifies the profile URL to be opened. The parameter should be URL-encoded and designed to open with **`target=_blank`**.

| Parameter | Description |
| --- | --- |
| profileurl | URL-encoded URL that will be opened |

Example

Here’s how to open the WebView or Iframe:

```jsx
[https://chat.watchers.io?roomId=](https://chat.watchers.io/?roomId=){ROOM ID}&userID={ENCRYPTED USERID}&apike={APIKEY}&profileurl=https%3A%2F%2Fwww.watchers.io%2Fprofile_name_or_id
```

<img src="https://docs-assets.watchers.io/docs/readme/393fd34d045a3bad1bc4fa4f87f1abddfb25324bc4be3b664fc1fd4c73b52fc7-Copybetting20_20Profile20Consulting2.jpg.png" alt="" width="500" class="img-center img-border">

This setting enables you to directly link to external profiles within your chat interface, providing a seamless user experience.
