---
title: Private Model Embed (PME)
description: Configuring PME
---

[Skip to content](https://info.treedis.com/help.center/private-model-embed-article#main-content)

English

Show submenu for translations

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Go to treedis.com](https://www.treedis.com/)

[Go to treedis.com](https://www.treedis.com/)

 This is a search field with an auto-suggest feature attached.

- There are no suggestions because the search field is empty.

1. [Help Center](https://info.treedis.com/help.center)
2. [Manage](https://info.treedis.com/help.center/manage)

# Private Model Embed (PME)

**PME (Private Model Embed)** prevents a tour from being publicly accessible. When a tour is in PME mode, it cannot be opened using its link alone. Viewers will need a time-limited access token that you create for them. After the token expires, the tour closes again.

PME allows you to share or embed private tours with controlled access, making it ideal for museums, galleries, stadiums, and similar experiences.

Since PME requires access to the Treedis API, this feature is available to users on the **Premium** and **Enterprise plans**.

#### How PME Works?

1. You turn on PME for a tour in the Treedis dashboard, making the tour private and not accessible without a token.
2. Your system creates a temporary token for the tour's slug (its unique smart-link) and sets how long it works (`expiresIn`, in seconds).
3. When the tour is loaded, the token is supplied (as `pmeToken`). Treedis validates it and **loads the tour only if the token is valid**, not expired, and its slug matches the tour. Otherwise, access is denied.

**Note:** You stay in control of who can open the tour and for how long. Hand out only short-lived tokens and let them expire.

#### **Configuring PME**

**Step 1: Turn on PME for Your Tour**

Open the tour's *Manage* section **→** *Info* **→** click *Edit info* **→** enable ***Private Model Embed →** Save*. From this point on, the tour requires a special token to load.

![](https://info.treedis.com/hs-fs/hubfs/image-png-Nov-18-2026-09-48-54-8840-PM.png?width=630&height=411&name=image-png-Nov-18-2026-09-48-54-8840-PM.png)

Optionally, a PME tour can also be **restricted to specific domains**, so the embed only works on websites you approve. You can indicate which websites are allowed to show the tour in the *Manage **→** Sharing Options.*

 **![](https://info.treedis.com/hs-fs/hubfs/image-png-Nov-18-2026-09-51-54-5905-PM.png?width=670&height=386&name=image-png-Nov-18-2026-09-51-54-5905-PM.png)**

**Step 2: Generate Your OAuth Credentials**

You only need to do this once. 

1. Open *Settings* in your Treedis account → *Workspace info.* ![](https://info.treedis.com/hs-fs/hubfs/image-png-Nov-18-2026-04-13-41-4471-PM.png?width=402&height=262&name=image-png-Nov-18-2026-04-13-41-4471-PM.png)
2. Go to *Advanced* → *OAuth credentials* → click ***Generate***. You will receive a **Client ID** and a **Client Secret**. ![](https://info.treedis.com/hs-fs/hubfs/image-png-Nov-18-2026-04-18-28-2983-PM.png?width=670&height=262&name=image-png-Nov-18-2026-04-18-28-2983-PM.png)

**Important:** Copy your **Client Secret** immediately after generating it, as it will not be visible again later. If you forget to copy it, you will need to regenerate your OAuth credentials. Keep it private and never place it on a public web page.

**Step 3: Get an Access Token**

Send your credentials to Treedis and you will get an access token back. This token lets you use the API. It works for 15 minutes, then you request a new one.

```
curl -X POST "https://api.treedis.com/v1/api/oauth2/token" \  -H "Content-Type: application/json" \  -d '{    "grant_type": "password",    "client_id": "YOUR_CLIENT_ID",    "client_secret": "YOUR_CLIENT_SECRET"  }'
```

Copy the `access_token` value from the response.

**Step 4: Create a PME Token for Your Tour**

Send your tour's slug (unique smart-link code, for example `ea753958`) and how long the token should work, in seconds. For example, 3600 seconds = 1 hour.

```

```

The PME token is returned in the `data` field of the response. Copy it.

**Step 5: Open the Tour with the Token**

Add the token to the end of the tour link as `?pmeToken=`, and the tour will load:

```
TOUR_LINK?pmeToken=YOUR_PME_TOKEN
```

A typical setup: when an authorized visitor arrives, your website creates a fresh token (Step 4) and opens the tour with it. Create a new token whenever the previous one is close to expiring.

**Note:** Turning PME on (Step 1) and generating credentials (Step 2) can be done by any workspace admin. Steps 3-5 are usually done by a developer on your team.

**Good to know:**

- A token works for **one tour `slug` only**. It will not open any other tour.
- A token **stops working** after `expiresIn` seconds. Create a new one when needed.
- Create tokens **per visitor or session**. Avoid placing one long-lasting token on a public page, because anyone could copy it.

 

#### Troubleshooting: If the Tour Does Not Open

| **What you see** | **What it means** | **What to do** |
| --- | --- | --- |
| Tour not found (404) | The tour is private and no token was sent | Add the `?pmeToken=` to the tour link |
| Token invalid | The token is damaged or incorrect | Create a new token |
| Token expired  (token past its `exp`) | The token's time ran out | Create a new token |
| Token not matching tour (token `slug` ≠ tour slug) | The token was made for a different tour | Use the slug of the tour you are opening |
| Access denied: domain not allowed (403) | The website is not on the tour's allowed list | Add the website in *Manage* → *Sharing Options* |

---

If you have further questions or need assistance with the settings, please contact us at [support@treedis.com](mailto:support@treedis.com)

- [Workspace NEW](https://info.treedis.com/help.center/workspace-new)
- [3D Editor](https://info.treedis.com/help.center/3d-editor#main-content)

    - [Interface](https://info.treedis.com/help.center/3d-editor#interface)
    - [Intro Screen](https://info.treedis.com/help.center/3d-editor#intro-screen)
    - [3D Scans](https://info.treedis.com/help.center/3d-editor#3d-scans)
    - [Burger Menu](https://info.treedis.com/help.center/3d-editor#burger-menu)
    - [Highlight Reel](https://info.treedis.com/help.center/3d-editor#highlight-reel)
    - [Map](https://info.treedis.com/help.center/3d-editor#map)
    - [Panorama](https://info.treedis.com/help.center/3d-editor#panorama)
    - [Tags](https://info.treedis.com/help.center/3d-editor#tags)
    - [Polygons](https://info.treedis.com/help.center/3d-editor#polygons)
    - [Measurements Feature](https://info.treedis.com/help.center/3d-editor#measurements-feature)
    - [Media / Vimeo / Green Screen](https://info.treedis.com/help.center/3d-editor#media-vimeo-green-screen)
    - [Giphy / Sketchfab](https://info.treedis.com/help.center/3d-editor#giphy-sketchfab)
    - [Virtual Staging / Avatars](https://info.treedis.com/help.center/3d-editor#virtual-staging-avatars)
- [FAQ](https://info.treedis.com/help.center/faq)
- [Manage](https://info.treedis.com/help.center/manage)
- [IoT Integrations](https://info.treedis.com/help.center/iot-integrations)
- [Analytics](https://info.treedis.com/help.center/analytics)
- [Treedis AI](https://info.treedis.com/help.center/treedis-ai)
- [Work Requests (Notes)](https://info.treedis.com/help.center/work-requests-notes)
- [White Label](https://info.treedis.com/help.center/white-label)
- [Flows](https://info.treedis.com/help.center/flows)
- [Navigation](https://info.treedis.com/help.center/navigation)
- [Experience Creator \*](https://info.treedis.com/help.center/experience-creator)
- [VR (Virtual Reality)](https://info.treedis.com/help.center/vr-virtual-reality)
- [AR (Augmented Reality)](https://info.treedis.com/help.center/ar-augmented-reality)
- [HUB \*](https://info.treedis.com/help.center/hub)
- [Billing & Subscription](https://info.treedis.com/help.center/billing-subscription)
- [V-Commerce](https://info.treedis.com/help.center/v-commerce)

[![Chill listening crop-3](https://info.treedis.com/hs-fs/hubfs/Group%2039638%20(1)%20(1).png?width=16&height=24&name=Group%2039638%20(1)%20(1).png "Chill listening crop-3")](https://www.treedis.com)

treedis.com Help Center

<https://www.linkedin.com/company/42905086/admin/dashboard/> <https://www.facebook.com/treedismsp>

Copyright © 2025, treedis.com