--- title: "Managing API Keys" description: "As a Host Administrator, you can create and revoke API keys that allow external tools and scripts to access the Veeam Host Management REST API." canonical: "https://helpcenter.veeam.com/docs/vbr/em/hmc_manage_api_keys.html" breadcrumb: "Veeam Backup Enterprise Manager Guide > Host Management > Configuring Veeam Appliances > Configuring Remote Access Settings > Managing API Keys" dateModified: "2026-11-26" --- # Managing API Keys As a Host Administrator, you can create and revoke API keys that allow external tools and scripts to access the Veeam Host Management REST API. ## Creating API Keys To create an API key, do the following: 1. Log in to the Veeam Host Management web UI as a Host Administrator. 2. In the management pane, click **Remote Access**. 3. Open the **API Keys** tab and click **Create API Key**. 4. In the **Name** field, enter a name for the API key. The name must be unique, must start with a letter and can contain only letters, digits, hyphens and underscores. 5. In the **Description** field, enter an optional description. 6. From the **Expiration** drop-down list, select the validity period. By default, the API key expires in 30 days. To specify an expiration date, select **Custom period** and specify the date. The API key can be valid from 1 day to 1 year. After the API key expires, tools and scripts that use it stop working. 7. In the **Allowed operations** section, select the check boxes next to the operations that the API key can perform. 8. Click **Create**. 9. In the **API Key Created** window, click **Copy** and save the API key. Click **Done**. ::: important You cannot view the API key after you close the window. If you lose the API key, revoke it and create a new one. ::: [![](images/hmc_web_create_api_key.png)](images/hmc_web_create_api_key.png){.toggle scale=70} To use an API key, send requests to `https://:10443/api/v1` and specify the key in the `Authorization` header as `Bearer `. For the list of operations, see the OpenAPI specification at `https://:10443/api/public/swagger`. ## Revoking API Keys To revoke API keys, do the following: 1. Log in to the Veeam Host Management web UI as a Host Administrator. 2. In the management pane, click **Remote Access**. 3. Open the **API Keys** tab, select one or more API keys and click **Revoke**. 4. In the **Revoke API Key** window, click **Revoke**. ::: important Revoked API keys cannot be restored. ::: If you assign another role to a user or delete the user, Veeam Host Management revokes the API keys that the user created.