# How to create API credentials

Follow these steps to generate an API Key to access API metrics:

1. On the **Digibee APIs** menu go to **Credentials**.
2. Click **+Create** on the **API Credentials** page.
3. Enter **Username**, **Password** and click **Save credentials**.

{% hint style="warning" %}
The Plataform adds the realm name to your username after you save it as default.
{% endhint %}

4. An API Key will be generated and will be grayed out.

{% hint style="info" %}
Please copy and save your API Key securely by clicking the copy icon. If you lose it, a new API Key must be created.
{% endhint %}

5. Click **Close**.
6. API metrics is selected by default.
7. When you finish the process, your custom URL will be displayed on the API credentials page. Copy and save it to use it later.

Check out the following video to learn more:

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4523BaA7JfghHEYBbLWY%2Fuploads%2FAW16xhY4ZsA6WrhLTmHc%2FAPI%20credentials.mp4?alt=media&token=b4fe7e7e-f70a-4441-ae9b-8f70102c2509>" %}
Digibee APIs menu
{% endembed %}


---

# 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.digibee.com/documentation/developer-guide/platform-administration/digibee-apis/how-to-create-api-credentials.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.
