# Create an API key

To create an API key in Unitlab:

1. Log in to Unitlab: [https://app.unitlab.ai](https://app.unitlab.ai/)
2. Click **API Keys** in the left sidebar.
3. Click the **New Key** button.

<figure><img src="https://1366014570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVY6yJqW9wWHP6u0XYu5Q%2Fuploads%2Fio82oNybwEZbxj9fxztF%2FCreate%20an%20API%20key.webp?alt=media&#x26;token=263d219e-af7b-4955-b439-bfe2f894014d" alt=""><figcaption></figcaption></figure>

Your API key will be generated with a unique API ID and the API key. Copy and use your newly created API key to authenticate with the Unitlab.

**Tips:**

* Keep your API keys secret. Do not share them with anyone else.
* Create a new API key if you need to revoke access to your Unitlab account.

**Additional information:**

* API keys are used to authenticate with the Unitlab API.
* API keys can be used to access all of the Unitlab API endpoints, including the CLI and Python SDK.
* API keys can be revoked by deleting or disabling them at any time.


---

# 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.unitlab.ai/how-to-integrate/create-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.
