> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runtm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Team Secrets

> List team secret names for the organization

Returns names of team (organization-scoped) secrets. Admins see names and descriptions; members see names only. Values are never returned. Requires `X-Organization-Id` header.

**Required scope:** `secrets:read`

## Headers

**Authorization** `string` *required*

Bearer token. Example: `Bearer runtm_xxx`

**X-Organization-Id** `string` *required*

Organization ID. Required for team secrets.

## Response

**secrets** `array`

Array of team secret entries.

**secrets\[].name** `string`

Secret name.

**secrets\[].has\_value** `boolean`

Always `true` for team secrets.

**secrets\[].description** `string | null`

Description (visible to admins only).

**count** `integer`

Total number of team secrets.

**is\_admin** `boolean`

Whether the requesting user has admin role.

```bash cURL theme={null}
curl "https://app.runtm.com/api/cloud/secrets/team" \
  -H "Authorization: Bearer runtm_xxx" \
  -H "X-Organization-Id: org_abc123"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://app.runtm.com/api/cloud/secrets/team",
    headers={
        "Authorization": "Bearer runtm_xxx",
        "X-Organization-Id": "org_abc123",
    },
)

data = response.json()
print(f"Team secrets: {data['count']} (admin={data['is_admin']})")
for secret in data["secrets"]:
    print(f"  {secret['name']}")
```

```javascript JavaScript theme={null}
const response = await fetch(
  "https://app.runtm.com/api/cloud/secrets/team",
  {
    headers: {
      "Authorization": "Bearer runtm_xxx",
      "X-Organization-Id": "org_abc123",
    },
  }
);

const data = await response.json();
console.log(`Team secrets: ${data.count} (admin=${data.is_admin})`);
data.secrets.forEach((s) => console.log(`  ${s.name}`));
```

```json 200 theme={null}
{
  "secrets": [
    {
      "name": "DATABASE_URL",
      "has_value": true,
      "description": "Production database connection string"
    },
    {
      "name": "STRIPE_SECRET_KEY",
      "has_value": true,
      "description": "Stripe API secret key"
    }
  ],
  "count": 2,
  "is_admin": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.