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

# client.secrets.list()

> List project secret names.

Return secret names and creation and update times. Secret values are omitted.

## Signature

Method signature on `client.secrets`:

```ts theme={null}
list(args: {
  projectId: string;
}): Promise<ProjectSecret[]>;
```

## Parameters

**projectId** `string` *required*

Project ID with prefix `pp.`.

## Returns

`Promise<ProjectSecret[]>`

Project secret metadata; secret values are not returned.

Returns an array. Each item has these fields:

**name** `ProjectSecretName` *required*

The name of a project secret.

**createdAt** `string` *required*

Time the secret was created, as an ISO 8601 timestamp.

**updatedAt** `string` *required*

Time the secret was last updated, as an ISO 8601 timestamp.

## Errors

HTTP errors throw [`PotatoApiError`](https://docs.platform.toloka.ai/docs/sdk/errors). The endpoint documents these error responses:

| Status | Description |
| - | - |
| 404 | Project not found |
| 429 | Rate limit exceeded |

HTTP endpoint: [`GET /projects/{projectId}/secrets`](https://docs.platform.toloka.ai/docs/api-reference/secrets/list-project-secrets).

```ts list() theme={null}
import { createClient } from "@toloka-platform/sdk";

const client = createClient({
  baseUrl: "https://platform.toloka.ai",
  apiKey: process.env.TOLOKA_API_KEY!,
});

const secrets = await client.secrets.list({
  projectId: "pp.019a0000-0000-7000-8000-000000000001"
});
console.log(secrets);
```

```json list() theme={null}
[
  {
    "name": "example",
    "createdAt": "2026-01-01T00:00:00Z",
    "updatedAt": "2026-01-01T00:00:00Z"
  }
]
```


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