# Create Widget Token

You’ll then be taken to a page to add your **Widget Token**. To obtain your widget token, you need to go back to the **Universal Payments Platform** and login.&#x20;

Then click on your name on the top right and select **View Account**.&#x20;

On the right hand side of the screen, you should see the Widget Token section with a **\[Generate Token]** button, which you need to click. Once the token is generated, you should see it in the field. Click the copy button next to the token to copy it to your clipboard.

<figure><img src="/files/AYxCI3CNJ6afQeW6nbSd" alt=""><figcaption></figcaption></figure>

Return to your BigCommerce admin screen and enter the Widget Token into the corresponding field.&#x20;

Then enter one of the following URL’s into the **Widget SDK Url** field.&#x20;

<table data-header-hidden><thead><tr><th width="187"></th><th></th></tr></thead><tbody><tr><td><strong>Sandbox</strong></td><td><a href="https://widgets.qa.optty.com/widget-loader.js">https://widgets.qa.optty.com/widget-loader.js</a></td></tr><tr><td>Production</td><td><a href="https://widgets.optty.com/widget-loader.js">https://widgets.optty.com/widget-loader.js</a></td></tr></tbody></table>

<figure><img src="/files/DIMGAplGLXmiKPt4p4Yw" alt=""><figcaption></figcaption></figure>

Finally, click **\[Submit]** and you should see a success notification pop up.&#x20;


---

# 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.optty.com/platforms/bigcommerce/add-optty-widgets/create-widget-token.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.
