# Key management

> Management around your keys and linked users and services.

Page: https://docs.icepack.ai/client-portal/key-management/

> **Note:**
> **Public access to the Icepack Portal will be made available soon!**



The **Key Management** tab allows you to access all functionality linked to your keys...viewing, creating, editing, rotating and revoking.

## Keys

A **free service key** (with all available free services enabled on it) is automatically created for you when you sign up. You will only be allowed to have one free service key and can create several **paid for service keys**. 


### Creating keys

New paid for service keys can be created by clicking on the **CREATE NEW KEY** button in the **Paid for Service Keys** block. At the time of creating the key, you will have the option to assign users and enable services.

*Role(s) with permission to perform task:* 
*Team Owner, Admin*

### Editing key name and description

The name and description of a key can be edited via the **Edit key name and description** icon to the right of the key name. 

> **Note:**
> The key name and description are purely to make managing your keys a bit easier, so use names and descriptions that will help you to keep track of them and that make the most sense to you. For example, if you are planning to use the key for a specific project or client, include that in the name and/or description. The key name must be unique to all active keys for the team.



*Role(s) with permission to perform task:* 
*Team Owner, Admin*

### Editing assigned users 

> **Note:**
> When you first sign up, you will be the only user in your team and the only user assigned to your key. You will have the option to assign multiple users to a key. Each assigned user will generate his/her own token to access the key’s enabled services.



To edit the assigned users, click on the **Edit members** icon to the right of the key name. You can select (or deselect) the user(s) you want to assign to/unassign from the key from the dropdown list. You will have the option to notify the user of their changed keys.


*Role(s) with permission to perform task:* 
*Team Owner, Admin*


### Editing enabled services

> **Note:**
> Each key can be set up to work for a selection of services. Only one billing policy per service class can be selected per key but different services can have different billing policies on the same key. Each service class has one or more available model(s) and you have the option to select which model(s) you want to have access to.



To edit the enabled services, click on the **Edit services** icon to the right of the key name. You can select (or deselect) the service(s) you want to enable/disable on the key and you will be required to select a billing policy for each.

<!-- - If **Free** is selected: All models available under the free billing policy for the selected service will be enabled on the key. -->
- If **Pay-as-you-go** is selected: A second modal will pop up where you will be required to select the models you want access to and a wallet from which payment for all API calls for the service will be deducted. You can also play around with input parameter values to see what the expected cost per request will be.

Note that this functionality is not available for your **Free Service Key**.

*Role(s) with permission to perform task:* 
*Team Owner, Admin*


### Generating a personal token

> **Note:**
> Each user assigned to a key will generate his/her own key token. This token is what is required to access the Icepack services.



To generate a token for your key, click on the green **Generate personal token** key icon to the right of the key name. You will be able to copy the generated token (manually or using the copy button) or download it as a simple text file. 

**PLEASE NOTE**: After clicking **CLOSE** your token will no longer be available to view, copy or download, so please keep it in a safe place!


### Rotating a key

> **Note:**
> It’s useful to periodically rotate keys if you’re as worried about security as we are! Rotating a key will involve deactivation of your personal token or all tokens linked to the key. This can be particularly useful in the event that a key is compromised. You will have to generate a new token to resume using the Icepack services, but the new token will have the same permissions and history as your previous token.	Proceed with caution and make sure your token isn’t currently being used in	production!



To rotate a key, click on the **Rotate token** icon to the right of the key name.

*Role(s) with permission to perform task:* 
*Team Owner, Admin, (User)*

### Revoking a key

> **Note:**
> Deleting/revoking a key is permanent and will involve deactivation of all tokens linked to the key and therefore no further access to any services enabled on the key. Proceed with caution and make sure your key isn’t currently being used in production!



To delete/revoke a key, click on the **Revoke key** icon to the right of the key name. Note that this functionality is not available for your **Free Service Key**.

*Role(s) with permission to perform task:* 
*Team Owner, Admin*

