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

# List secrets

`GET /secrets`

Lists secrets with cursor-based pagination.

Required scope: \`secrets:read\`

## Query parameters

- `secret_type` 'google_drive' | 'github' | 'notion' | 'x' | 'xai' | 'chartmetric' — The type of the secret
- `limit` integer
- `after_id` string, uuid

## Response `200`

Successful retrieval of secrets

- ListSecretsResponse
  - `secrets` Secret[], required
    - `id` string, required — Secret ID
    - `name` string, required — Name of the secret
    - `type` 'google_drive' | 'github' | 'notion' | 'x' | 'xai' | 'chartmetric', required — The type of the secret
    - `description` string — Description of the secret
    - `last_update_time` integer, required — Last updated time (Unix timestamp in seconds)
    - `creation_time` integer, required — Creation time (Unix timestamp in seconds)
    - `chartmetric_lifecycle_state` 'pending_create' | 'active' | 'pending_update' | 'pending_delete' — Persistent lifecycle state of a Chartmetric credential
    - `chartmetric_consent` ChartmetricConsentSummary, nullable
      - `plan_profile` string, required
      - `data_use_profile` string, required
      - `accepted_at` integer, required — Consent acceptance time (Unix timestamp in seconds)
  - `pagination` Pagination, required
    - `total` integer — Total number of items
    - `limit` integer, required — Maximum number of items per page
    - `has_more` boolean, required — Whether there are more items after this page
    - `next_id` string, uuid, nullable — ID to pass as after_id for next page (null if has_more=false)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

> 71 revisions in range; 18 not diffed.

- **2026-03-17** `b50a49abec5e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/qlonolink/apis/qaip-apis/changes/secrets/get.md)

---

[API](https://skmtc.dev/qlonolink/apis/qaip-apis.md) · [All operations](https://skmtc.dev/qlonolink/apis/qaip-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qlonolink/qaip-apis/revisions/61dc40676905/schema)
