# Initialization

## ⚙ SDK Initialization

To initialize **Tyr SDK**, embed a URL in your **WebView** with the following structure:

```markup
https://sdk.tyrads.com?token=<TOKEN>&to=<ROUTE>&lang=<LOCALE>
```

#### 🚦 Parameters

<table><thead><tr><th width="140.18359375">Parameter</th><th width="104.90234375">Required</th><th width="363.875">Description</th><th data-type="content-ref"></th></tr></thead><tbody><tr><td><code>token</code></td><td>✅ Yes</td><td><strong>Access token generated via API</strong>. This token authenticates the session.</td><td><a href="/pages/2FqugZSqiLsUbC98PWk4">/pages/2FqugZSqiLsUbC98PWk4</a></td></tr><tr><td><code>to</code></td><td>❌ No</td><td><strong>Deep link route</strong> to direct users to a specific screen or feature in the SDK (e.g., <code>/offers</code>, <code>/active-offers</code>, <code>/settings</code>)</td><td><a href="/pages/MKFNwkbxpNryiN9b0Cnj">/pages/MKFNwkbxpNryiN9b0Cnj</a></td></tr><tr><td><code>lang</code></td><td>❌ No</td><td><strong>Language/locale code</strong> for SDK content localization. Follows ISO 639-1 (e.g., <code>en</code>, <code>ja</code>, <code>id</code>)</td><td><a href="/pages/X0gL2BEg4Nc9tWOV2urd">/pages/X0gL2BEg4Nc9tWOV2urd</a></td></tr><tr><td><code>skipUserInfo</code></td><td>❌ No</td><td><strong>Bypasses the user onboarding/profile collection screen on SDK launch</strong>. Set to <code>true</code> if user information has already been collected or is managed externally (e.g., <code>skipUserInfo=true</code></td><td></td></tr><tr><td><code>placementId</code></td><td>❌ No</td><td><strong>Identifies the ad placement context to filter and return only the currencies available for that specific placement.</strong> Use the placement ID assigned during your ad unit setup (e.g., <code>placementId=1</code></td><td><a href="/pages/hnBzQX89mA8mtqzwKrpQ">/pages/hnBzQX89mA8mtqzwKrpQ</a></td></tr></tbody></table>

{% hint style="warning" %}
⚠️ The `token` parameter is **mandatory**. Without it, the **SDK** will not function properly.
{% endhint %}


---

# 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://sdk-doc.tyrads.com/iframe/overview/initialization.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.
