# Creating a restricted key

If you want more security, you can create [restricted API keys](/digital-river-api/administration/dashboard/developers/api-keys.md#restricted-keys). A restricted key reduces risk when using or building services by providing the minimum level of access and permissions a service needs to access specific resources in the Digital River API. Use restricted keys to limit access to services interacting with the Digital River API.

To create a restricted key:

1. Click **API keys** in the left navigation. The API keys page appears.
2. From the **API keys** page, click **Create restricted key**.
3. From the **API Version** drop-down list, select the API version you want to associate with the restricted.&#x20;
4. Type the key's name in the **Key name** field.
5. Select the appropriate permission (**None**, **Read**, **Write**, **Read/Write**) for each resource type.
6. Click **Create key**.

   <div align="left"><figure><img src="/files/EhAiBAqSLhAWHQs0NZkB" alt=""><figcaption></figcaption></figure></div>

You can [delete ](/digital-river-api/administration/dashboard/developers/api-keys/deleting-a-restricted-key.md)a restricted key when you no longer need it or suspect it is compromised. You can also [rotate ](/digital-river-api/administration/dashboard/developers/api-keys/rotating-keys.md)or [edit ](/digital-river-api/administration/dashboard/developers/api-keys/editing-a-restricted-key.md)a restricted key to change its level of access.


---

# 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.digitalriver.com/digital-river-api/administration/dashboard/developers/api-keys/creating-a-restricted-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.
