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

> Os agentes, fornecedores e sistemas que falam com um espaço.



## OpenAPI

````yaml openapi/pt/control.json GET /v1/sources
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/sources:
    get:
      summary: Listar fontes
      description: >-
        Todo agente, fornecedor, canal ou sistema que fala com um espaço é uma
        fonte, com chaves, finalidades e classe de audiência próprias. Uma
        pessoa com o papel vendor vê só as fontes ligadas a ela.


        **Autenticação.** Token de pessoa emitido pelo controle (`Authorization:
        Bearer <JWT>`), com o papel que a operação pede.
      operationId: list_sources_v1_sources_get
      parameters:
        - in: query
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          description: O espaço cujas fontes você quer.
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SourceOut'
                title: Response List Sources V1 Sources Get
                type: array
              example:
                - source_id: 0192f0a0-5f60-7172-8d83-9e0f1a2b3c45
                  space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23
                  name: Billing agent
                  audience: internal_agent
                  vendor: in-house
                  channel: erp
                  purposes:
                    - billing
                  verification_ceiling: no_customer
                  confirms_before_acting: false
                  navigation_enabled: true
                  trusted_action_ops:
                    - credit
                  critical: false
                  revoked_at: null
          description: As fontes do espaço. Uma pessoa com o papel vendor vê só as dela.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - personToken: []
components:
  schemas:
    SourceOut:
      additionalProperties: false
      properties:
        audience:
          $ref: '#/components/schemas/Audience'
        channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel
        confirms_before_acting:
          title: Confirms Before Acting
          type: boolean
        critical:
          title: Critical
          type: boolean
        name:
          title: Name
          type: string
        navigation_enabled:
          title: Navigation Enabled
          type: boolean
        purposes:
          items:
            type: string
          title: Purposes
          type: array
        revoked_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Revoked At
        source_id:
          format: uuid
          title: Source Id
          type: string
        space_id:
          format: uuid
          title: Space Id
          type: string
        trusted_action_ops:
          items:
            type: string
          title: Trusted Action Ops
          type: array
        vendor:
          anyOf:
            - type: string
            - type: 'null'
          title: Vendor
        verification_ceiling:
          $ref: '#/components/schemas/Verification'
      required:
        - source_id
        - space_id
        - name
        - audience
        - vendor
        - channel
        - purposes
        - verification_ceiling
        - confirms_before_acting
        - navigation_enabled
        - trusted_action_ops
        - critical
        - revoked_at
      title: SourceOut
      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
    Audience:
      enum:
        - customer_agent
        - internal_agent
        - human
        - reviewer
        - analyst
        - trigger_target
        - export
      title: Audience
      type: string
    Verification:
      description: >-
        Níveis de verificação da sessão. `no_customer` fica fora da escala de V0
        a V4.
      enum:
        - V0
        - V1
        - V2
        - V3
        - V4
        - no_customer
      title: Verification
      type: string
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````