# 1Token

### 1. Create an API Key & Secret

Go through the 1Token docs on creating an API Key & Secret: <https://1token.tech/cam-docs/openapi-docs/#section/Tutorial/Quick-Start>

In the scope, choose the portfolio you want to use. For the permission, select `All Business Viewers (cannot export)`. This is the minimal access Onyx requires to retrieve the NAV of the portfolio.

Store the API Key & Secret in a secure place — you will need them in the next step.

### 2. Get the Portfolio ID

Go to **Ops & Accounting > Portfolio Setup**.\
Enable the **Portfolio ID** column (it is not shown by default).\
Copy and save the Portfolio ID, as you will need it in the next step.

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

### 3. Connect 1Token to Onyx in the Admin App

Navigate to **Vault > Advanced > Portfolio Value Provider**.

Fill out the form with the following values:

* **Subdomain** – use the subdomain of the 1Token.tech domain you log in with.\
  For example, if you access your account at <https://mysubdomain.1token.tech/>, then `mysubdomain` is your subdomain.
* **API Key** – use the value from Step 1
* **API Secret** – use the value from Step 1
* **Portfolio ID** – use the value from Step 2

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

Click the **"Connect"** button. The values will be automatically verified upon submission, and you will receive a confirmation once the connection is successful.


---

# 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.enzyme.finance/onyx-user-documentation/administration-app/vault/markdown/portfolio-value-providers/1token.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.
