Applies to:
- Plan:
- Deployment:
Summary
Issue: Org owners cannot programmatically list API key metadata across all users in the organization.GET /v1/api_key returns only the caller’s own keys, even for org owners.
Cause: The org-wide key listing logic (makeOwnerApiKeysFullResultSetQuery) is only exposed through UI server actions, not through the public REST API.
Resolution: Use the Braintrust UI to audit org-wide API keys. A dedicated read-only endpoint is a tracked feature request with no current ETA.
Current behavior
| Method | Org-owner access |
|---|---|
| Braintrust UI | View and manage all org API keys |
GET /v1/api_key | Returns caller’s own keys only |
GET /v1/organization/{org_id}/api-keys | Does not exist |
Workaround
Using the UI
Org owners can view and manage all API keys under Settings → API Keys in the Braintrust UI. This is the only supported method for org-wide key auditing at this time.Using user impersonation
The API supports impersonating users to fetch their keys:- Call
POST /v1/impersonatewith a target user ID. - Use the returned token to call
GET /v1/api_key. - Repeat for each user in the org.