> For the complete documentation index, see [llms.txt](https://sdk-doc.tyrads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk-doc.tyrads.com/iframe/overview/initialization.md).

# 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/hzsKA2qe5WOP6YqXoGlT">/pages/hzsKA2qe5WOP6YqXoGlT</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/gBb3TpIKYC0enCuSsEQX">/pages/gBb3TpIKYC0enCuSsEQX</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><tr><td><code>hideBackButton</code></td><td>❌ No</td><td><strong>Hides the back button on the offerwall page, which is normally used to close the SDK.</strong> Set to <code>true</code> if you want to prevent users from closing the SDK via this button. It is usually used when close behavior is handled by your own app. (e.g., <code>hideBackButton=true</code>)</td><td></td></tr></tbody></table>

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