API keys
Call the DevBench API from your own scripts, with your account's access.
- Reading time
- 1 min read
- Who
- Owner
How it works
A key lets a script call the DevBench API. It acts with your account's access, so it can use every endpoint you can, treat it as your password, not as a scoped token.
Send it as a Bearer token, or in an X-API-Key header, to any endpoint under /api.
Each workspace's box holds its own agent-scoped key, which is what devbench in that box
authenticates with, that is why the keys list has a row named after each workspace. Revoking one
stops that box's CLI, which is occasionally exactly what you want.
Steps
Open API keys from the organization's menu at the top left (or the search: Ctrl Ctrl, ⌘ ⌘ on a Mac). It opens as a tab where you are.
Give the key a name and press Create key.
The full value is shown once. Copy it now.
Send it as
Authorization: Bearer devbench_sk_…from your script.The page has a ready-made
curlyou can copy.Watch the last used column to find keys nobody needs any more.
Press Revoke to switch one off, or Delete to remove the row entirely.
Worth knowing
A key is as powerful as your account. There is no narrower scope, so do not paste one anywhere you would not paste your password.