---
title: What Should I Do If I Suspect My API Key Is Compromised?
url: https://docs.vultr.com/support/platform/api/what-should-i-do-if-i-suspect-my-api-key-is-compromised
description: Regenerate a suspect Vultr API key at once; the old key stops working, so update scripts that depend on it.
publish_date: 2025-09-14T04:00:31.220384Z
last_updated: 2026-10-26T23:34:39.731653Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

If you suspect that your Vultr API key has been exposed or misused, [regenerate the key](https://docs.vultr.com/platform/other/api/current-user/rotate-api-key) immediately from the API page in the Vultr Console. Regenerating the key invalidates the old one and prevents unauthorized access to your account.

After regenerating the key, update any systems or scripts that depend on the previous API key to restore normal functionality.

>[!WARNING]
>For improved security, avoid allowing the **All IPv4** (`0.0.0.0/0`) and **All IPv6** (`::/0`) options in your API Access Control list. Only allow trusted IP addresses or ranges to limit unauthorized access. For more information on how to manage access permissions for your API key, refer to the [Manage API Access Control](https://docs.vultr.com/platform/other/api/manage-api-access-control) documentation.
