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

# List secret references

> Where each secret lives, without its value.



## OpenAPI

````yaml openapi/en/control.json GET /v1/secret-refs
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/secret-refs:
    get:
      summary: List secret references
      description: >-
        Where each secret of a space lives in the cell vault, with version and
        who rotated it last. Values never pass through the control plane.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: secret_refs_v1_secret_refs_get
      parameters:
        - in: query
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          description: The space whose secret references you want.
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SecretRefOut'
                title: Response Secret Refs V1 Secret Refs Get
                type: array
              example:
                - space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
                  ref: >-
                    spaces/0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23/webhook/whsec-crm
                  kind: webhook
                  version: 2
                  rotated_by: 0192f0a0-4e5f-7061-9c72-8d9e0f1a2b35
                  rotated_at: '2026-09-20T15:30:00Z'
          description: The secret references.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    SecretRefOut:
      additionalProperties: false
      properties:
        kind:
          maxLength: 256
          minLength: 1
          title: Kind
          type: string
        ref:
          maxLength: 256
          minLength: 1
          title: Ref
          type: string
        rotated_at:
          format: date-time
          title: Rotated At
          type: string
        rotated_by:
          format: uuid
          title: Rotated By
          type: string
        space_id:
          format: uuid
          title: Space Id
          type: string
        version:
          minimum: 1
          title: Version
          type: integer
      required:
        - space_id
        - ref
        - kind
        - version
        - rotated_by
        - rotated_at
      title: SecretRefOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````