> For the complete documentation index, see [llms.txt](https://docs.tresori.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tresori.xyz/api-keys.md).

# API Keys

The **API Keys** page allows users to generate, manage, and secure API keys required to integrate Tresori Wallet-as-a-Service (WaaS) into their applications. These keys enable secure communication between your application and Tresori services.

**Step-1:** Navigate to the API key section on the dashboard's left side menu.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2FhhlN4LwnhMMJiXJyfHMe%2Fimage.png?alt=media&amp;token=da2d097a-c405-4efc-ae33-dd0bd1a22a98" alt=""><figcaption></figcaption></figure>

**Step-2:** At the top of the page, users must select a project to manage its API keys. Select the project from the dropdown menu for which they want to generate the API keys.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2FQ9OR8cjR9BsCM8AWBp3Y%2Fimage.png?alt=media&amp;token=9499f467-ee68-4aab-9c92-7a49714700cd" alt=""><figcaption></figcaption></figure>

> **Note:** *Only enabled projects are available for API key generation. Disabled projects will not appear in the project selection list.*

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2FaSWtC38QXwM0GvIb6nc2%2Fimage.png?alt=media&amp;token=c933d581-73d2-4d7c-be53-fcfc67ad921e" alt=""><figcaption></figcaption></figure>

### API Keys Section

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2Fvt7qsYCgko03ecRjqque%2Fimage.png?alt=media&amp;token=555b642b-e118-4a3a-b76a-a9b5a3cb573a" alt=""><figcaption></figcaption></figure>

This section displays all API keys associated with the selected project.

* If no API keys exist for this spevific Project, a **“No API Keys”** message is displayed.
* Users can generate their first API key by clicking the **Generate API Key** button.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2Fm70NQazqHgjLUo36L5UX%2Fimage.png?alt=media&amp;token=dec81589-cc76-4a52-a035-52496f22a8a5" alt=""><figcaption></figcaption></figure>

* Once generated, API keys will be listed here with relevant details (such as status and creation date).

**Step-3:** Click on **"Generate API Key"**&#x20;

**Step-4:** Once click the button user will get a modal pop-up, to provide Name of API key.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2FjyXKbK4ysOPltKZiOjs9%2Fimage.png?alt=media&amp;token=2af1b7c3-0ed3-438b-95e2-ce1b913c22cc" alt=""><figcaption></figcaption></figure>

Upon providing a valid key name, the *Generate Key* button is activated, allowing the user to proceed.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2Fa9KJnVjXuHGLtT0aesgD%2Fimage.png?alt=media&amp;token=1c3f67c2-c71d-497b-8668-eac810b627f9" alt=""><figcaption></figcaption></figure>

This screen is displayed once an API key has been successfully generated for the selected project.

As soon as user hit the **"Create Key"** button the system will create a key and redirected to the API key Page.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2FSXHiTreGdqrmHhk90ebf%2Fimage.png?alt=media&amp;token=03bfb1c9-c213-45ec-90e4-0f388c9fb394" alt=""><figcaption></figcaption></figure>

#### Key Details Displayed

* **API Key Name** – Shows the name assigned to the API key (e.g., *TEST KKR*).
* **Status** – Indicates whether the API key is **Active** or **Inactive**.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2Fck8Liux2aXIxcjQYWreZ%2Fimage.png?alt=media&amp;token=a261cc00-02b4-4e80-8920-91435257220e" alt=""><figcaption></figcaption></figure>

The **Masked API Key Value** ensures security by displaying only a partial portion of the API key, preventing full exposure.&#x20;

Users can temporarily reveal the complete key using the **View** icon when required, while the **Copy** icon allows them to securely copy the API key for use in their application without manually exposing it.

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2F4vSeMBLWn01WSAO2Y7Rd%2Fimage.png?alt=media&amp;token=7dd38f40-82f5-426a-84c8-bfa8286ae4e1" alt=""><figcaption></figcaption></figure>

#### Generate Additional Keys

* Users can create more API keys for the same project by clicking **Generate API Key**.
* Multiple keys can be maintained to support different environments (e.g., development, staging, production).

<figure><img src="https://2651964699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFS0LGFwBpTDPwKyrdgBn%2Fuploads%2FPrbetr85yIsTBc5IWvZz%2Fimage.png?alt=media&amp;token=cec17c07-887f-487e-a4a9-2bc211f2ed31" alt=""><figcaption></figcaption></figure>
