# API keys and tools
URL: https://docs.datarobot.com/en/docs/platform/acct-settings/api-key-mgmt.html

> How to use DataRobot's developer tools, including API key management, the MLOps agent tarball, and the Portable Prediction Server Docker image.

# API keys and tools

DataRobot provides multiple developer tools for you to use when making prediction requests or engaging with the DataRobot API.
The currently available tools are:

- API key management
- The Monitoring agent tarball
- Portable Prediction Server Docker image

Click on your user icon and navigate to API keys and tools to access these features:

## API key management

API keys are the preferred method for authenticating web requests to the DataRobot [APIs](https://docs.datarobot.com/en/docs/api/reference/index.html); they replace the legacy API token method.
You can simply post the API key into the request header and the application requests you as a user.
All DataRobot API endpoints use API keys as a mode of authentication.

Generating multiple API keys allows you to create a new key, update your existing integrations, and then revoke the old key, all without disruption of service of your API calls.
This also allows you to generate distinct keys for different integrations (script A using key A, script B using key B).

> [!NOTE] Note
> If you were previously using an API token, that token has been upgraded to an API key.
> All existing integrations will continue to function as expected, both for the DataRobot API and the [Prediction API](https://docs.datarobot.com/en/docs/api/reference/predapi/legacy-predapi/dr-predapi.html).

### Access API key management

You can register and manage—name, create, and delete—multiple API keys.
To access this page, click on your user icon and navigate to the API keys and tools page.

The Personal API keys tab lists your API keys with a variety of options available:

|  | Element | Description |
| --- | --- | --- |
| (1) | API endpoint | Copy the API endpoint to your clipboard (contents blurred out in this image) to paste elsewhere. |
| (2) | Open documentation | Access multiple code-first resources, such as REST API documentation, Python client documentation, or AI accelerators. |
| (3) | Key type | Toggle between tabs for the three kinds of API keys: API keys for personal use of the API, application API keys for use with custom applications, and agent API keys for use with agentic workflows. |
| (4) | Search | Search the list of API keys by name or date created. |
| (5) | + Create new key | Create a new personal API key. |
| (6) | Copy | Copy a key to your clipboard (contents blurred out in this image) to paste elsewhere. |
| (7) | Actions menu | Expand the actions menu to rename or delete an API key. |

#### Personal API keys

Each personal API key on the Personal API keys tab lists the key name, status, value, creation date, and when it was last used.
To create a personal API key, from the Personal API keys tab on the API keys and tools page, click + Create new key.
Then enter an API key name and click Create.
This activates the new key, making it ready for use.

#### Application API keys

An application API key grants an application the necessary access to the DataRobot Public API, allowing you to grant users the ability to access and use data from within an application.
A new key is automatically created each time you build a custom application.
While sharing roles grant control over the application as an entity within DataRobot, application API keys grant control over the requests the app can make when a user accesses it.
See [configuring application API keys for custom applications](https://docs.datarobot.com/en/docs/wb-apps/custom-apps/manage-custom-app.html#application-api-keys) for more information.

Application API keys are listed in the Application API keys tab of the API keys and tools page.

| Field | Description |
| --- | --- |
| Name | The name of the key. |
| Key | The value of the API key. |
| Role | The scope of access the application has to the public API granted by the key. |
| Connected application | The name of the custom application that the key belongs to. Click the link to access the application. |
| Data created | The date the key was created. |
| Last used | The time elapsed since the last use of the key. |
| Expiration | The time remaining until the key expires. |

#### Agent API keys

To differentiate between various applications and agents using a deployment, agent API keys are generated automatically when a new Agentic workflow deployment is created.
Agent API keys are listed in the Agent API keys tab of the API keys and tools page, and can be edited (renamed) or deleted.

| Field | Description |
| --- | --- |
| Name | The name of the key. |
| Key | The value of the key. |
| Connected deployment | The name of the deployment that the key belongs to. Click the link to access the deployment. |
| Data created | The date the key was created. |
| Last used | The time elapsed since the last use of the key. |

### Delete an existing key

To delete an existing key, expand the actions menu for the key you wish to delete, then click Delete. This prompts a dialog box warning you about the impacts of deletion. Click Delete again to remove your key.

## Monitoring agent tarball

DataRobot offers the [monitoring agent](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/mlops-agent/index.html) as a solution for monitoring external models outside of DataRobot and reporting back statistics. To monitor a deployment of this kind, you must first implement the following software components, provided by DataRobot:

- MLOps library (available in Python, Java, and R)
- The monitoring agent

These components are part of an installer package available as a tarball in the DataRobot application.

### Download the monitoring agent tarball

The monitoring agent tarball can be accessed from two locations: the API keys and tools section, and the [Predictions > Monitoring](https://docs.datarobot.com/en/docs/classic-ui/predictions/realtime/code-py.html#monitoring-snippet) tab for a deployment.

Click on your user icon and navigate to API keys and tools. Under the Management and monitoring agents header, click the download icon. Additional documentation for setting up the Agent is included in the tarball.

> [!NOTE] Note
> You can also download the DataRobot Python libraries from the public [Python Package Index site](https://pypi.org). Download and install the [DataRobot metrics reporting library](https://pypi.org/project/datarobot-mlops) and the [DataRobot Connected Client](https://pypi.org/project/datarobot-mlops-connected-client). These pages include instructions for installing the libraries.

## Portable Prediction Server Docker image

> [!NOTE] Availability information
> The Portable Prediction Server image may not be available in some installations. Review the [availability guidelines](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/pps/portable-pps.html#obtain-the-pps-docker-image) for more information.

Download the Portable Prediction Server Docker image from the API keys and tools page:

You can see some important information about the image:

|  | Element | Description |
| --- | --- | --- |
| (1) | Image name | The name of the image archive file that will be downloaded. |
| (2) | Image creation date | The date that the image was built. |
| (3) | File size | The size of the compressed image to be downloaded. Be aware that the uncompressed image size can exceed 12GB. |
| (4) | Docker Image ID | A shortened version of the Docker Image ID, as displayed by the docker images command. It is content-based so that regardless of the image tag, this value will remain the same. Use it to compare versions with the image you are currently running. |
| (5) | Hash | Hash algorithm and content hash sum. Use to check file integrity after download (see example below). Currently SHA256 is used as a hash algorithm. |

Click the download icon and wait for the file to download. Due to image size, download times may take minutes (or even hours) depending on your network speed.
Once the download completes, check the file integrity using its hash sum. For example, on Linux:

```
sha256sum datarobot-portable-prediction-api-7.0.0-r1736.tar.gz
5bafef491c3575180894855164b08efaffdec845491678131a45f1646db5a99d  datarobot-portable-prediction-api-7.0.0-r1736.tar.gz
```

If the checksum matches the value displayed in the image information (Hash value (5), above), the image was downloaded successfully and can be safely [loaded to Docker](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/pps/portable-pps.html#load-the-image-to-docker).

---
