Sandboxes
API keys
How requests to the Sandboxes API are signed in, and who can do what.
Every API request needs an API key. Keys belong to an organization, not a person: anything a key does is recorded in the audit log as that key.
Send the key
Authorization: Bearer qr_live_...X-API-Key: qr_live_... works too. Requests without a valid key get 401 with the code unauthorized.
Create and revoke keys
People manage keys in the dashboard under API keys:
- A new key is shown once. We store only a SHA-256 hash of it, so we can't show it again.
- Each key has a name, and the dashboard shows when it was last used.
- Revoking a key takes effect on the next request.
What a key can't do
An API key can create and use sandboxes, but it can't approve or deny a command held by an approval rule. Only a person signed in to the dashboard can, so an agent can't approve its own risky command. Approve and deny calls made with a key get 403 forbidden.
Organizations and people
The dashboard uses Quiet Robot accounts with email and password. An organization has members with roles, and people can be invited. A signed-in dashboard session can also call the API for its active organization; that's how the dashboard itself works.