# Website

## Prerequisites

* This guide expects a basic [Web development knowledge](https://developer.mozilla.org/en-US/docs/Learn)
* Get a Connect3D Vendor Account from TutAR by sending a mail at <mark style="color:orange;"><<email@tutar.app>></mark>.
* Gererate an API key from the [Connect3D dashboard](https://connect3d.tutar.app/dashboard)

## Embedding the Viewer

The 3D viewer can be embedded into a website by using [an iframe](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe). Based on the [Subscription mode ](/overview.md#subscription-modes)you choose there are two different ways to embed the viewer.

* **For Vendor-Managed Subscription**

<pre class="language-html" data-full-width="false"><code class="lang-html">&#x3C;iframe
    src="https://web.tutar.app?api-key=&#x3C;<a data-footnote-ref href="#user-content-fn-1">API-KEY</a>>&#x26;user-id=&#x3C;<a data-footnote-ref href="#user-content-fn-2">USER-ID</a>>"
    id="3d-viewer"
    allow="camera"
    allowFullScreen >&#x3C;/iframe>
</code></pre>

* **For User-Managed Subscription**

<pre class="language-html"><code class="lang-html">&#x3C;iframe
    src="https://web.tutar.app?api-key=&#x3C;<a data-footnote-ref href="#user-content-fn-1">API-KEY</a>>"
    id="3d-viewer"
    allow="camera"
    allowFullScreen >&#x3C;/iframe>
</code></pre>

&#x20;here since the Authentication is handled by the end user, only API-KEY is required.

[^1]: The key generated from the connect3D dashboad

[^2]: A unique id to distinguish each users. this can be the primary id of the logged in user in your platform


---

# 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://docs.tutar.app/embedding/website.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.
