APITube Help Center

How to Create, Rename and Revoke API Keys

Add keys, change their names, replace secrets, or stop access

Erick Horn

Written by Erick Horn

June 27, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to create, rename and revoke API keys

Open API Keys in your dashboard. Click Create key to add a key, or use a key’s row menu to rename, regenerate, or revoke it. Each workspace allows 20 active keys in Live mode and 20 in Test mode.

Your app sends the key with each API request, in the X-API-Key header or api_key parameter. See the official authentication reference.

Where do you manage API keys?

The API Keys table shows keys for the selected workspace and mode. Columns include Name, Key, Usage points, Last used, Created, a seven-day Activity chart, and Status.

The secret is shortened on screen. Use the copy icon to copy its full value. The first key is called Default; keys without a name show as Unnamed key.

Status can be Active, Revoked, or Expired. A key expiring within seven days also shows Expires in Nd. Test keys have a Test badge.

API Keys page with its key table and Create key button

How to create a new API key

  1. Select the Test or Live mode you need, then click Create key.
  2. Enter a required name of up to 255 characters, such as “Production server”.
  3. Optionally set expiration, IP or referrer restrictions, and endpoint scopes.
  4. Click Create key to confirm.

Create API key dialog with name and expiration fields

The key appears at the top of the table. Live keys begin with api_live_; test keys begin with api_test_. Copy the full value into your app:

curl -H "X-API-Key: api_live_YOUR_KEY" \
  "https://api.apitube.io/v1/news/everything?per_page=10"

The table shows only keys for the selected mode.

How to rename an API key

Open the row’s ⋯ menu, choose Rename, enter a name, and click Save. This changes only the label. The secret, history, and restrictions stay the same, so existing requests keep working.

Use names that identify the service or environment, such as “Staging worker” or “Partner integration”.

How to regenerate (rotate) a key

Choose Regenerate from the row menu to replace a key’s secret. Its name, history, restrictions, scopes, expiry, and mode stay the same.

The old secret stops working immediately. Update every app that uses it with the new value. Requests with the old value return 401; see how to fix authentication errors.

How to revoke an API key

Choose Revoke from the row menu and confirm. The key stops working immediately and cannot be restored.

It remains in the table as Revoked for your records and no longer counts toward the active-key limit. Use Regenerate instead if you want to replace the secret while keeping the same key and history.

Common Questions

How many API keys can I have?

Twenty active keys per workspace in each mode: 20 Live and 20 Test. Revoked keys do not count. If you reach the limit, revoke an unused key before creating another.

Can I see a key’s full value again after creating it?

Yes. The table’s copy icon copies the full secret at any time. Keep it in a secret manager and out of browser code that other people can read.

Do separate keys split my quota?

No. All your keys share your account’s quota, balance, and subscription. Use separate keys to manage services or environments independently, without affecting the others when you replace or revoke one.

Who on my team can manage API keys?

Workspace owners, admins, and members can create, rename, regenerate, and revoke keys. Viewers cannot change them.


Related Articles