Skip to main content

Viewing and Revoking Your API Key

Written by Bouncy Admin
Updated over 2 months ago

After generating your API key, you can view it, toggle its visibility, and revoke it if needed from the API Dashboard.


Viewing Your API Key

  1. Log in to your Bouncy.ai account.

  2. Click API in the left sidebar. If you already have an API key, you will be taken directly to the API Dashboard.

  3. Your API key is displayed at the top of the dashboard in a masked format:

    • The first few characters (prefix) are visible, followed by a series of dots.

    • Example: bncy_sk_••••••••••••••••••••••••••••

  4. Click the Show button to reveal the full API key.

  5. Click Hide to mask it again.


Keeping Your Key Secure

  • Never share your API key publicly (e.g., in GitHub repositories, blog posts, or client-side JavaScript).

  • Store your key in environment variables or a secrets manager in your application.

  • If you suspect your key has been compromised, revoke it immediately and generate a new one.


Revoking Your API Key

If you need to invalidate your current key (for security reasons or to generate a fresh one):

  1. Navigate to the API Dashboard.

  2. Locate your API key display section.

  3. Use the revoke/regenerate option to invalidate the existing key.

  4. Once revoked, all requests using the old key will be rejected immediately.

  5. Generate a new key and update all applications that use the Bouncy API.


Legacy Keys

If your API key was created before the show/hide feature was introduced, you may see a warning:

"This API key was created before the show/hide feature. Please regenerate your key to use this feature."

In this case, regenerate your key to get full show/hide functionality.


What Happens When a Key Is Revoked

  • All API requests using the revoked key will immediately return authentication errors.

  • Your API logs and usage history are preserved -- they are not deleted when a key is revoked.

  • You can generate a new key at any time from the API page.


Related Articles

Did this answer your question?