---
title: "List secrets"
method: GET
path: "/api/v1/secrets"
tags: ["Secrets"]
---

# List secrets

`GET /api/v1/secrets`

This endpoint allows you to list secrets in your organization.

This GET is a paginated API that uses the following parameters to request specific details:

- `size`: Supply an integer value between 10 and 1000, inclusive. The default value is 10.

- `page`: Supply an integer value. The default value is 0.

- `search`: Supply a string value to filter secrets by name (case-insensitive partial match).

## Authentication

User authentication required: `true`

This endpoint accepts authentication via API keys in the `Basic` authentication header, or a pre-authenticated token in HTTP cookie `token`. Cookie sessions extend automatically on each request.

## Authorization

Users must have global role permission MANAGE_DATASOURCES_AND_AGENTS to execute this call.

## Tags

`Secrets`

## Rate limiting

60 requests/60 seconds

## Query parameters

- `page` integer
- `search` string
- `size` integer

## Response `200`

Successful response

- PublicApiListSecretsResponse
  - `content` PublicApiSecretDTO[], required
    - `created` string, date-time
    - `id` string
    - `lastUpdated` string, date-time
    - `name` string
  - `first` boolean, required
  - `last` boolean, required
  - `number` integer, required
  - `size` integer, required
  - `totalElements` integer, required
  - `totalPages` integer, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.dev/soda/apis/soda-cloud-api-v4.md) · [All operations](https://skmtc.dev/soda/apis/soda-cloud-api-v4/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/soda/soda-cloud-api-v4/revisions/ce87192b6b72/schema)
