Advanced API Keys
Advanced API Keys adds scoped permissions, folder keys, custom metadata, disabling, a default key and rotation reminders to workspace API keys.
Every workspace can create, name, roll, protect and revoke API keys (see Manage API Keys in the Dashboard). Advanced API Keys adds the controls below. Without it, the dialogs show them locked.
Scoped Keys
A scoped key only has the abilities selected on it. A key that runs inference on an edge device does not need to delete projects or read other keys.
When you create a key, "Key Permissions" in the "Generate New API Key" dialog lists every ability by section (ex: "Workspace", "Projects", "Workflows", "Images", "Models and inference", "API keys"). Everything is selected except "API keys", so a new key cannot read or manage other keys unless you opt in. Untick what the key does not need, or "Deselect all" and pick the few it needs.
To change a key's abilities later, click the "Scoped" or "Full access" badge on its row, or the "Edit" icon. A protected key's abilities are locked until it is unprotected.
A request that needs an ability the key does not have gets a 404, as if the route did not exist. See Errors.
From the API and CLI you can also scope a key to a role's abilities with role:<name> (ex: role:reviewer). See Create an API Key.

Folder API Keys
A folder key only reaches the projects and Workflows inside one Project Folder. Use one key per site, production line or integration, so a rotation or a leak affects one folder.
Create a folder key from the folder card menu, "API Keys", then "Generate New Key". Admins can also create one from Settings, "API Keys", in the "Folder API Keys" section, by picking a folder. Both places show the same table and row actions as workspace keys.
Members with write access to the folder open its keys from the folder card menu. Managing them takes the usual key permissions on top, so folder keys can stay with the team that runs the site while workspace keys stay with Admins. Recommended Access Setup shows a role layout built this way.
A folder key cannot be the workspace default. Usage made with a folder key is attributed to that folder. See Billing Folders.


Custom Metadata
Attach up to 20 key and value pairs to a key (ex: owner=platform-team, env=prod, cost-center=4711). Keys can be 100 characters long and values 500. Click "Add Field" under "Custom Metadata" in "Generate New API Key" or "Edit". The table shows them in a "Metadata" column once any key has some.
Use metadata to record who is responsible for a key and what it serves. When a rotation reminder arrives, the metadata tells you who to ask.
Disable and Enable
The pause icon disables a key without revoking it. Consumers get authentication errors until you enable it again, and the value stays the same. Use it to confirm nothing still depends on a key before you revoke it. A protected key cannot be disabled.
Default Key
With several keys, tick "Set as default API key for this workspace" on the one the app should use for code snippets and background actions. See Default and In Use Keys.
Rotation Due Date and Owners
Set a "Rotation Due Date" and "Owners" on a key to get one email between 15 days before the date and the date itself, while the key is active. The key table shows how close each date is, and rolling a key moves its date forward. See Rotation Reminders.
From the API, CLI and MCP Server
Everything above except the default key is available programmatically. Create accepts scopes, folderIds, customMetadata, rotationDueAt and owners. Update accepts scopes, customMetadata, disabled, rotationDueAt and owners; a key's folders are fixed at creation. The default key is chosen in the dashboard only. See API Key Management API.
Cloud Streaming
Cloud Streaming uses workspace-bound credentials at https://api.roboflow.com. The workspace in the request path must match the credential's workspace. Prefer the Authorization: Bearer header over the api_key query parameter to reduce accidental key exposure in URLs.
Give an integration only the scopes its tasks need:
List sources and jobs, read a job or Workflow interface, download completed file results
video-inference-job:read
Workspace API key or OAuth access token
Allocate or stop a temporary session, request source preview, cancel a job, renew a preview owner lease or watch output
video-inference-job:create
Workspace API key or OAuth access token
Start a Workflow job
video-inference-job:create, workflow:read and model:infer
Workspace API key
A complete integration that discovers sources, starts processing, reads progress and stops jobs needs both video job scopes plus workflow:read and model:infer. Job execution uses the same API key that admitted the request. OAuth access tokens can read and control jobs, but cannot start them.
Device-bound keys cannot use the workspace-wide Cloud Streaming control API. Folder-scoped credentials cannot create or mutate jobs, request preview/watch grants, or allocate and stop temporary sessions. Use a workspace-scoped automation key in a dedicated workspace rather than expecting project-folder restrictions to apply to these operations.
A watch request is a mutation, not a read: it keeps video publication active and can change the image output selected for every viewer. Source preview also changes demand and placement. That is why both require video-inference-job:create.
Keep API keys server-side. Source preview, temporary publishing and job watch responses contain sensitive connection URLs or tokens. Do not store them in logs, analytics, tickets or shared documents. Job records omit execution credentials and Workflow parameter values. Reacquire a watch grant after an execution changes rather than reusing stale credentials.
See Cloud Streaming for the source and job lifecycle, or use the Platform API reference for each operation's fields. App source administration, restart, promotion and browser capture are not public v1 endpoints.
Last updated
Was this helpful?