# API Keys

API keys are used to perform operations programmatically on behalf of a user. For example, you will need an API key to use any Modelmetry SDK.

### View all API keys

1. Go to `Settings`
2. Click on `API Keys`
3. View all api keys. You can filter api keys based on their status (Enabled, Disabled, Revoked).

{% hint style="info" %}
If you have lost your API key; you must revoke it and create a new one again. The API key will not be shown again after it's been created.
{% endhint %}

### Create an API key

1. Go to `Settings`
2. Click on `API Keys`
3. Click on `New`
4. Select the member you want to create the API key for
5. Click `Create`
6. The API key will be displayed to you and it will never be shown to you again. Make sure you save and use it securely.

### Disable an API key

1. Go to `Settings`
2. Click on `API Keys`
3. Open the action menu for the api key you want to disable
4. Click on `Disable` and the API key will be immediately disabled
   1. If you were in a filtered view, the API key will disappear for that filtered view.&#x20;
   2. You can see it by selecting the appropriate filter.
5. You can re-enable the API key by following the same steps and clicking on `Enable`

### Revoke an API key

1. Go to `Settings`
2. Click on `API Keys`
3. Open the action menu for the api key you want to revoke
4. Click on `Revoke` and the API key will be immediately revoked

{% hint style="warning" %}
A revoked API key cannot be re-enabled so you will need to create a new API key.
{% endhint %}


---

# 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.modelmetry.com/platform/api-keys.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.
