# List the org's Project secrets, without values.

`GET /o/{org}/secrets`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org` | path | string | yes | The org's slug or id. A caller with no role in the org gets `404`. |
| `project` | query | string | no | Only this Project's secrets. |

## Example request

```bash
curl "https://api.phoenix.so/o/$RUSH_ORG/secrets" \
  -H "Authorization: Bearer $RUSH_TOKEN"
```

```typescript
const org = process.env.RUSH_ORG;

const res = await fetch(`https://api.phoenix.so/o/${org}/secrets`, {
  headers: {
    Authorization: `Bearer ${process.env.RUSH_TOKEN}`,
  },
});

console.log(res.status, await res.json());
```

```python
import os

import requests

org = os.environ["RUSH_ORG"]

res = requests.get(
    f"https://api.phoenix.so/o/{org}/secrets",
    headers={"Authorization": f"Bearer {os.environ['RUSH_TOKEN']}"},
)

print(res.status_code, res.json())
```

## Responses

### 200

Secrets, never a value.

- `data` (array of Secret, required)
  - `id` (string, required)
  - `name` (string, required)
  - `kind` (string, required, one of `env`, `header`, `login`)
  - `source` (string, required, one of `rush`, `onepassword`): Where the value lives; a 1Password secret holds only its reference.
  - `description` (string, required)
  - `project_id` (string, required)
  - `targets` (array of string, required): Hosts (header) or one origin (login); empty for env.
  - `header_name` (string | null, optional)
  - `header_format` (string | null, optional)
  - `has_totp` (boolean, required)
  - `created_by` (string | null, required): Null once the member who added it has deleted their account; the secret stays with the Project.
  - `created_at` (string, required)
  - `value_updated_at` (string, required)
  - `last_used_at` (string | null, optional)

### 401

No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.

### 429

The account is over its request budget, 1,800 a minute shared by the person's API keys and console on every API host (`RATE_LIMITED`). The error names the limit. Wait `Retry-After` seconds.

## Example response (200)

```json
{
  "data": [
    {
      "id": "5c1f8e27-3a9b-4d60-b2e4-7f0d6a8c1e95",
      "name": "NPM_TOKEN",
      "kind": "env",
      "source": "rush",
      "description": "",
      "project_id": "7d2e9a14-5b3c-4f60-8e21-9a0b1c2d3e4f",
      "targets": [],
      "header_name": null,
      "header_format": null,
      "has_totp": false,
      "created_by": "4e8a1f3c-6b2d-4c97-a05e-8d3f2b1c9a76",
      "created_at": "2026-10-07T09:12:30.000Z",
      "value_updated_at": "2026-10-07T09:12:30.000Z",
      "last_used_at": null
    },
    {
      "id": "9e3a6d14-7b2c-4f81-a5d9-0c8e2f4b6a37",
      "name": "staging-login",
      "kind": "login",
      "source": "rush",
      "description": "The QA account on staging.",
      "project_id": "7d2e9a14-5b3c-4f60-8e21-9a0b1c2d3e4f",
      "targets": ["https://staging.acme.dev"],
      "header_name": null,
      "header_format": null,
      "has_totp": true,
      "created_by": "4e8a1f3c-6b2d-4c97-a05e-8d3f2b1c9a76",
      "created_at": "2026-09-30T11:05:48.000Z",
      "value_updated_at": "2026-09-30T11:05:48.000Z",
      "last_used_at": "2026-10-05T18:21:09.000Z"
    },
    {
      "id": "2b7e4c90-1d3a-4f58-8e6b-9c0a5d2f7e13",
      "name": "stripe-api",
      "kind": "header",
      "source": "rush",
      "description": "Stripe test-mode key for checkout tests.",
      "project_id": "7d2e9a14-5b3c-4f60-8e21-9a0b1c2d3e4f",
      "targets": ["api.stripe.com"],
      "header_name": "Authorization",
      "header_format": "Bearer {value}",
      "has_totp": false,
      "created_by": "4e8a1f3c-6b2d-4c97-a05e-8d3f2b1c9a76",
      "created_at": "2026-09-28T17:40:12.000Z",
      "value_updated_at": "2026-09-28T17:40:12.000Z",
      "last_used_at": "2026-10-06T15:02:14.000Z"
    }
  ]
}
```
