For the complete documentation index, see llms.txt. This page is also available as Markdown.

Manage API Keys in the Dashboard

Create, rename, roll, protect, disable and revoke workspace API keys from the Roboflow dashboard, and read the badges and warnings on the key table.

Settings, "API Keys" lists your workspace's private keys and the actions you can take on each. Seeing the page takes the "View Workspace API Keys" permission, which Admins have by default. To manage keys from code or an agent, see API Key Management API.

Settings, API Keys, with three workspace keys, their badges and row actions
Settings, "API Keys": each row shows the key's badges, its masked value with reveal and copy buttons, its rotation status, and the row actions.

The Key Table

Each row shows the key's name, badges, when and by whom it was created, the masked value with reveal and copy buttons, and the row actions: "Edit", "Protect", "Roll", "Disable" and "Revoke".

Badge
Meaning

Default

The key the app uses for code snippets and background actions. See Default and In Use Keys.

In Use

No default is set, so the app falls back to this key: a full access key if there is one, otherwise the oldest enabled key with the required permissions.

Protected

The key cannot be disabled, revoked or rolled until it is unprotected. See Protect a Key.

Disabled

The key is rejected until it is enabled again. Hover the badge to see why it was disabled.

Full access or Scoped

Whether the key can do everything its workspace allows, or only the abilities selected on it. See Scoped Keys.

Rotate by, Due in, Due today, Overdue, No Rotation Date

How close the key is to its rotation due date, or that none is set. See Rotation Reminders.

New

The key was just created by a roll.

Keys created by Deployment Manager for a device show a "View Device" button instead of row actions. Manage them from the device.

Create a Key

Click "Generate New Key", enter a "Key Name" and click "Create API Key". The "API Key Created" dialog shows the value. Store it in a secret manager or an environment file that is not committed. Members with the "Use and Copy API Keys" permission can copy the value again from the table; the API and CLI never show it again.

Name keys after what uses them (ex: "ci-pipeline", "line-3-camera-gateway"). When the key comes up for rotation, the name tells you what the rotation affects.

Any member with the "Create Api Key" permission can create keys. Creating a key scoped to a folder, or a key that can see every folder, takes access to those folders.

Rename a Key

Click the "Edit" icon, change "Key Name" and click "Save API Key". Renaming does not change the key's value.

Roll a Key

"Roll" revokes the key and creates its replacement in one step. Dedicated Deployments move to the new key automatically; update other consumers with the new value. See Rotate API Keys for when to roll and what to check first.

Protect a Key

Click the shield icon and confirm. A protected key cannot be disabled, revoked or rolled, and its permissions cannot be changed, until it is unprotected. This holds for the dashboard, the API, the CLI and the MCP Server.

Protect production keys so an automated agent or a script with key management scopes cannot take them down. Unprotecting is only possible from the dashboard. Click the shield icon again and confirm.

Disable and Enable a Key

Click the pause icon and confirm. Applications using the key get authentication errors immediately. Click the play icon to enable it again. The value does not change, so consumers work again without an update.

Disabling takes Advanced API Keys. A protected key cannot be disabled. A key that backs a Dedicated Deployment can be disabled once you acknowledge the dependency warning, and the deployment pauses within a few minutes.

Revoke a Key

Click the trash icon and confirm. Revoking is permanent and takes effect immediately. The last workspace key cannot be revoked from the table, and a protected key cannot be revoked until it is unprotected. A key that backs a Dedicated Deployment can be revoked once you acknowledge the dependency warning, and the deployment pauses within a few minutes. The API, CLI and MCP Server refuse that revoke instead. See Revoke an API Key.

Dependency Warnings

Before a roll, revoke or disable, the dialog lists what Roboflow knows depends on the key. If anything is listed, or the check could not complete, you must tick "I understand what depends on this key and want to roll it anyway" (or "revoke" or "disable", matching the action) before continuing.

Dependency
What happens if you continue

Dedicated Deployments

On a roll, the deployments move to the new key; if one cannot be moved, the roll fails and the old key stays live. On a revoke or disable, they pause within a few minutes. Give each one an active key in its settings, then resume it.

Billing Folders

Usage attribution through this key stops and falls back to another key.

Edge devices

Stream credentials on these devices are encrypted with this key. Rolling or revoking it makes them unreadable and the device needs to be provisioned again. Disabling the key stops API access until it is enabled again.

Workspace default

Background jobs (ex: dataset export, training, Auto Label, Workflow streaming) switch to a different key.

Recent usage

The key had billed usage in the last 30 days. The consumer may have moved since, so verify it yourself.

The warning covers what Roboflow can see. Keys stored in your own systems are not listed. See Find Where the Key Is Used.

Default and In Use Keys

When a workspace has several keys, the app still uses one of them for code snippets and for actions it runs on your behalf (ex: viewing model evaluation results). To choose it, tick "Set as default API key for this workspace" when you generate a key, or in "Edit". That key shows the "Default" badge. Choosing a default takes Advanced API Keys.

The default key must keep the permissions those actions need: workspace:read, project:read, version:read, image:read, model:infer and workflow:read. Roboflow adds them and locks them while the key is the default. A folder key cannot be the default.

If no key is the default, the app falls back to a full access workspace key, or without one to the oldest enabled workspace key with those permissions. That key shows the "In Use" badge. Check that badge before you disable or revoke a key, so you know which key your workspace actions and billed usage run under.

If no key has those permissions, the table shows a warning. Until you generate a full-access key or set a default, actions the app runs for you fail. This includes running models, running and previewing Workflows, Auto Label, model evaluation and dataset exports.

Permissions

Each action maps to a permission in Role-Based Access Control. Admins have them all. Custom roles can grant them one by one.

Action
Permission

Open Settings, "API Keys"

View Workspace API Keys

Copy a key's value

Use and Copy API Keys

Create a key

Create Api Key

Rename, protect, disable, set as default

Update Api Key

Revoke a key

Revoke Api Key

Roll a key

Create Api Key and Revoke Api Key

Members without "View Workspace API Keys" can still manage the keys of folders they can write to, from the folder card menu. See Folder API Keys.

Last updated

Was this helpful?