> ## 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.

# Listar referências de segredo

> Onde cada segredo mora, sem o valor.



## OpenAPI

````yaml openapi/pt/control.json GET /v1/secret-refs
openapi: 3.1.0
info:
  title: API de controle da Niadra
  version: '1'
  description: >-
    Tenants, projetos, fontes, chaves, pessoas, configuração e uso. Nunca recebe
    conteúdo de cliente.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/secret-refs:
    get:
      summary: Listar referências de segredo
      description: >-
        Onde cada segredo de um espaço mora no cofre da célula, com a versão e
        quem fez a última rotação. Os valores nunca passam pelo plano de
        controle.


        **Autenticação.** Token de pessoa emitido pelo controle (`Authorization:
        Bearer <JWT>`), com o papel que a operação pede.
      operationId: secret_refs_v1_secret_refs_get
      parameters:
        - in: query
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          description: O espaço cujas referências de segredo você quer.
          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: As referências de segredo.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      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: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      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

````