# Generate an API key

To generate an API key, navigate to your Company Settings (via the Violet logo in the bottom left-hand corner of your screen), then select **API**.

<figure><img src="/files/4HgP8RdobyTO2PnKEaqG" alt="" width="259"><figcaption></figcaption></figure>

Click <mark style="color:purple;">**+ CREATE API KEY**</mark>. If you wish, you can choose an expiration date for your key, otherwise click <mark style="color:purple;">**CREATE.**</mark> When your key appears, copy it and save it somewhere safe. **You will not be able to access the key again.**

<figure><img src="/files/VhgYEibuh3JV5RWASbV0" alt="" width="563"><figcaption></figcaption></figure>

Next: learn how to use the [Endpoints](/features/api/endpoints.md) to retrieve your Violet data.


---

# 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.violetlabs.com/features/api/generate-an-api-key.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.
