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

> As propostas destiladas e as escritas por agentes num espaço que exige aprovação.



## OpenAPI

````yaml openapi/pt/cell.json GET /v1/agent-memory/proposals
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-2
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/agent-memory/proposals:
    get:
      tags:
        - agent-memory
      summary: Listar propostas
      description: >-
        Lista as propostas: as destiladas e, num espaço com `writes:
        human_only`, as que os agentes escreveram.


        **Autenticação.** Chave de fonte com o escopo `agent_memory` ou
        `context`, ou token de pessoa do Console com o papel `integration` (ou
        admin).
      operationId: list_proposals_v1_agent_memory_proposals_get
      parameters:
        - in: query
          name: source_id
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            title: Source Id
          description: Só as propostas deste agente.
        - in: query
          name: status
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/ProposalStatus'
              - type: 'null'
            default: pending
            title: Status
          description: >-
            `pending` (o padrão), `drafting`, `approved`, `rejected` ou
            `failed`.
        - in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
          description: Cursor opaco, vindo de `next_cursor`.
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentNoteProposalPage'
          description: Uma página de propostas.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    ProposalStatus:
      enum:
        - drafting
        - pending
        - approved
        - rejected
        - failed
      title: ProposalStatus
      type: string
    AgentNoteProposalPage:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/AgentNoteProposal'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      required:
        - items
      title: AgentNoteProposalPage
      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
    AgentNoteProposal:
      additionalProperties: false
      properties:
        body:
          title: Body
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        decided_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Decided At
        decided_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided By
        evidence:
          anyOf:
            - $ref: '#/components/schemas/Evidence'
            - type: 'null'
        kind:
          $ref: '#/components/schemas/AgentNoteKind'
        note_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: A nota que uma aprovação criou.
          title: Note Id
        origin:
          description: >-
            `distilled` quando veio de uma conversa ou tarefa; `agent` quando o
            espaço segura as escritas dos agentes para uma pessoa aprovar.
          enum:
            - distilled
            - agent
          title: Origin
          type: string
        problem:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Por que uma destilação falhou: `nothing_to_propose`,
            `personal_data`, `no_turns` ou `unconfirmed_link` (a conversa falou
            só por um vínculo que uma afirmação fez e ninguém confirmou ainda;
            peça de novo depois da confirmação).
          title: Problem
        proposal_id:
          format: uuid
          title: Proposal Id
          type: string
        source_id:
          format: uuid
          title: Source Id
          type: string
        status:
          $ref: '#/components/schemas/ProposalStatus'
        tags:
          items:
            type: string
          title: Tags
          type: array
        title:
          title: Title
          type: string
        visibility:
          $ref: '#/components/schemas/AgentNoteVisibility'
          default: source
      required:
        - proposal_id
        - source_id
        - origin
        - kind
        - title
        - body
        - status
        - created_at
      title: AgentNoteProposal
      type: object
    Evidence:
      additionalProperties: false
      description: 'De onde a nota veio: só o id, nunca o texto da conversa ou da tarefa.'
      properties:
        conversation_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Conversation Id
        task_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Task Id
      title: Evidence
      type: object
    AgentNoteKind:
      enum:
        - procedure
        - tool_note
        - process_note
        - pitfall
      title: AgentNoteKind
      type: string
    AgentNoteVisibility:
      enum:
        - source
        - vendor
        - space
      title: AgentNoteVisibility
      type: string
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````