curl -sS "$BMA_BASE_URL/v1/vaults/vlt_zppdgwodanyrnl7ee7tsokkpta/credentials?limit=20" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"data": [
{
"type": "vault_credential",
"id": "vcrd_pdkul5ljnr2o5b3ijqmnv4zkka",
"vault_id": "vlt_zppdgwodanyrnl7ee7tsokkpta",
"display_name": "GitHub API token",
"metadata": {},
"auth": {
"type": "environment_variable",
"secret_name": "GITHUB_TOKEN",
"networking": {
"type": "limited",
"allowed_hosts": [
"api.github.com"
]
},
"injection_location": {
"header": true,
"body": false
}
},
"created_at": "2026-11-21T09:30:55.270113Z",
"updated_at": "2026-11-21T09:30:55.270113Z",
"archived_at": null
},
{
"type": "vault_credential",
"id": "vcrd_5gcylxgccz62vh57oz32pprj44",
"vault_id": "vlt_zppdgwodanyrnl7ee7tsokkpta",
"display_name": "Linear",
"metadata": {
"owner": "alice"
},
"auth": {
"type": "mcp_oauth",
"mcp_server_url": "https://mcp.linear.app/mcp",
"expires_at": "2026-11-21T10:15:00Z",
"refresh": {
"client_id": "bma-linear-client",
"token_endpoint": "https://linear.app/oauth/token",
"token_endpoint_auth": {
"type": "none"
},
"scope": "read write"
}
},
"created_at": "2026-11-20T08:20:41.993021Z",
"updated_at": "2026-11-21T09:15:02.441276Z",
"archived_at": null
}
],
"next_page": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}List credentials
Lists the credentials of one vault, newest first (by creation time, then ID). Archived credentials are left out unless include_archived=true. Only the non-secret settings of each credential are returned, never a token or secret value. A page holds limit credentials (default 20, at most 100); send the returned next_page as page to get the next one, and next_page is null on the last page. The vault may be archived; an unknown vault, or one in another workspace, is a 404 not_found_error without an error.code.
Authorization: Organization API key (x-api-key: bma_org_v1_…), personal access token (Authorization: Bearer bma_pat_v1_…), signed-in user token or dashboard session; user credentials name the organization with bma-organization-id. The request acts in one workspace: the one named by bma-workspace-id, which may be left out when the credential resolves to a single workspace (the workspace an API key is bound to, or a member’s only workspace). Any workspace role (admin, developer, operator, viewer) may call it; organization owners and admins act as workspace admins in every workspace of their organization. Machine, executor and session credentials are refused.
Limits:
limit: 1-100 items per page, default 20.- Rate limit: one request of the organization’s read budget (Rate limits).
Errors (besides the common errors (401 authentication, 429 rate_limited, 500)):
| Status | error.type | error.code | Cause | Fix |
|---|---|---|---|---|
| 400 | invalid_request_error | invalid_request | page is not a cursor this list returned. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | organization_required | A personal access token or user token names no organization with bma-organization-id. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none with bma-workspace-id. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 403 | permission_error | permission_denied | The credential is neither an organization API key nor a user credential (for example a machine, executor or session token). | Use a credential with the required role or access; retrying with the same credential will not help. |
curl -sS "$BMA_BASE_URL/v1/vaults/vlt_zppdgwodanyrnl7ee7tsokkpta/credentials?limit=20" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"data": [
{
"type": "vault_credential",
"id": "vcrd_pdkul5ljnr2o5b3ijqmnv4zkka",
"vault_id": "vlt_zppdgwodanyrnl7ee7tsokkpta",
"display_name": "GitHub API token",
"metadata": {},
"auth": {
"type": "environment_variable",
"secret_name": "GITHUB_TOKEN",
"networking": {
"type": "limited",
"allowed_hosts": [
"api.github.com"
]
},
"injection_location": {
"header": true,
"body": false
}
},
"created_at": "2026-11-21T09:30:55.270113Z",
"updated_at": "2026-11-21T09:30:55.270113Z",
"archived_at": null
},
{
"type": "vault_credential",
"id": "vcrd_5gcylxgccz62vh57oz32pprj44",
"vault_id": "vlt_zppdgwodanyrnl7ee7tsokkpta",
"display_name": "Linear",
"metadata": {
"owner": "alice"
},
"auth": {
"type": "mcp_oauth",
"mcp_server_url": "https://mcp.linear.app/mcp",
"expires_at": "2026-11-21T10:15:00Z",
"refresh": {
"client_id": "bma-linear-client",
"token_endpoint": "https://linear.app/oauth/token",
"token_endpoint_auth": {
"type": "none"
},
"scope": "read write"
}
},
"created_at": "2026-11-20T08:20:41.993021Z",
"updated_at": "2026-11-21T09:15:02.441276Z",
"archived_at": null
}
],
"next_page": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}