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

# Consultar triagem de mídia adversa

> Retorna o status atual da triagem e, quando concluída, seu resultado completo.



## OpenAPI

````yaml GET /adverse-media/{adverse_media_uuid}
openapi: 3.1.0
info:
  description: Superfície pública da API para clientes autenticados por chave de API.
  title: NL Labs Gateway (Public API)
  version: 0.1.0
servers:
  - url: https://api.nlbs.ai
security: []
tags:
  - description: Busca de entidades canônicas.
    name: entities
  - description: Criação, leitura, grafo e dossiê de análises.
    name: analyses
  - description: Relatório regulatório (COAF/SUSEP).
    name: reports
  - description: Triagem de mídia adversa.
    name: adverse-media
  - description: Versões do manifesto regulatório.
    name: regulatory
  - description: Versões do catálogo de regras do motor de risco.
    name: rules
  - description: Endpoints e eventos de webhook.
    name: webhooks
  - description: >-
      Entrypoints HTTP de workflow: invocar um workflow e consultar sua
      execução.
    name: workflow-endpoints
paths:
  /adverse-media/{adverse_media_uuid}:
    get:
      tags:
        - adverse-media
      summary: Consultar triagem de mídia adversa
      description: >-
        Retorna o status atual da triagem e, quando concluída, seu resultado
        completo.
      operationId: get_adverse_media_screening
      parameters:
        - description: UUID de execução da triagem.
          in: path
          name: adverse_media_uuid
          required: true
          schema:
            description: UUID de execução da triagem.
            format: uuid
            title: Adverse Media Uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdverseMediaResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Chave de API ausente, malformada, expirada ou inválida.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: A chave de API autenticada não tem o escopo necessário.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Triagem não encontrada para o cliente autenticado.
        '422':
          description: >-
            Corpo da requisição, parâmetro de rota, parâmetro de query ou regra
            de negócio inválidos.
components:
  schemas:
    AdverseMediaResponse:
      properties:
        analysis_uuid:
          format: uuid
          title: Analysis Uuid
          type: string
        completed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Completed At
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        result:
          anyOf:
            - $ref: '#/components/schemas/AdverseMediaResultSummary'
            - type: 'null'
        started_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Started At
        status:
          $ref: '#/components/schemas/AdverseMediaScreeningStatus'
        synthesis_status:
          $ref: '#/components/schemas/AdverseMediaSynthesisStatus'
        uuid:
          format: uuid
          title: Uuid
          type: string
      required:
        - uuid
        - analysis_uuid
        - status
        - synthesis_status
      title: AdverseMediaResponse
      type: object
    ErrorResponse:
      properties:
        detail:
          description: Mensagem de erro pública e estável.
          examples:
            - Resource not found.
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    AdverseMediaResultSummary:
      additionalProperties: false
      properties:
        discards:
          items:
            $ref: '#/components/schemas/AdverseMediaDiscard'
          title: Discards
          type: array
        exposure:
          $ref: '#/components/schemas/AdverseMediaExposure'
        findings:
          items:
            $ref: '#/components/schemas/AdverseMediaFinding'
          title: Findings
          type: array
        limitations:
          items:
            $ref: '#/components/schemas/AnalysisLimitation'
          title: Limitations
          type: array
        scope:
          items:
            $ref: '#/components/schemas/AdverseMediaScope'
          title: Scope
          type: array
        subject:
          $ref: '#/components/schemas/AdverseMediaSubject'
        synthesis:
          anyOf:
            - type: string
            - type: 'null'
          title: Synthesis
        targets:
          items:
            $ref: '#/components/schemas/AdverseMediaTarget'
          title: Targets
          type: array
        versions:
          $ref: '#/components/schemas/AdverseMediaVersionsSummary'
      required:
        - subject
        - exposure
        - versions
      title: AdverseMediaResultSummary
      type: object
    AdverseMediaScreeningStatus:
      enum:
        - queued
        - running
        - completed
        - failed
        - cancelled
      title: AdverseMediaScreeningStatus
      type: string
    AdverseMediaSynthesisStatus:
      enum:
        - pending
        - running
        - completed
        - failed
        - not_applicable
      title: AdverseMediaSynthesisStatus
      type: string
    AdverseMediaDiscard:
      additionalProperties: false
      properties:
        anchors_tested:
          items:
            $ref: '#/components/schemas/AnchorMatch'
          title: Anchors Tested
          type: array
        attributed_entity_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Attributed Entity Id
        outlet:
          minLength: 1
          title: Outlet
          type: string
        target_entity_id:
          exclusiveMinimum: 0
          title: Target Entity Id
          type: integer
        title:
          minLength: 1
          title: Title
          type: string
        url:
          minLength: 1
          title: Url
          type: string
        why_discarded:
          minLength: 1
          title: Why Discarded
          type: string
      required:
        - target_entity_id
        - title
        - url
        - outlet
        - why_discarded
      title: AdverseMediaDiscard
      type: object
    AdverseMediaExposure:
      additionalProperties: false
      properties:
        disclaimer:
          minLength: 1
          title: Disclaimer
          type: string
        grade:
          $ref: '#/components/schemas/ExposureGrade'
        label:
          minLength: 1
          title: Label
          type: string
        rules_version:
          minLength: 1
          title: Rules Version
          type: string
      required:
        - grade
        - label
        - disclaimer
        - rules_version
      title: AdverseMediaExposure
      type: object
    AdverseMediaFinding:
      additionalProperties: false
      properties:
        anchors_matched:
          items:
            $ref: '#/components/schemas/AnchorMatch'
          title: Anchors Matched
          type: array
        attributed_entity_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Attributed Entity Id
        attributed_name:
          minLength: 1
          title: Attributed Name
          type: string
        attribution:
          $ref: '#/components/schemas/FindingAttribution'
        axis:
          $ref: '#/components/schemas/AdverseMediaAxis'
        corroborating_sources:
          items:
            type: string
          title: Corroborating Sources
          type: array
        effect_active:
          title: Effect Active
          type: boolean
        evidence_quote:
          minLength: 1
          title: Evidence Quote
          type: string
        materiality:
          anyOf:
            - $ref: '#/components/schemas/Materiality'
            - type: 'null'
        nature:
          $ref: '#/components/schemas/FindingNature'
        occurred_on:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Occurred On
        reasoning:
          minLength: 1
          title: Reasoning
          type: string
        source:
          $ref: '#/components/schemas/FindingSource'
        stage:
          $ref: '#/components/schemas/FindingStage'
        summary:
          minLength: 1
          title: Summary
          type: string
        target_entity_id:
          exclusiveMinimum: 0
          title: Target Entity Id
          type: integer
        title:
          minLength: 1
          title: Title
          type: string
      required:
        - target_entity_id
        - attribution
        - attributed_name
        - axis
        - nature
        - stage
        - effect_active
        - title
        - summary
        - evidence_quote
        - source
        - reasoning
      title: AdverseMediaFinding
      type: object
    AnalysisLimitation:
      additionalProperties: false
      properties:
        code:
          minLength: 1
          pattern: ^[a-z][a-z0-9_]*$
          title: Code
          type: string
        details:
          additionalProperties: true
          title: Details
          type: object
        entity_id:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Entity Id
        message:
          minLength: 1
          title: Message
          type: string
      required:
        - code
        - message
      title: AnalysisLimitation
      type: object
    AdverseMediaScope:
      additionalProperties: false
      properties:
        articles_read:
          default: 0
          minimum: 0
          title: Articles Read
          type: integer
        axes_scanned:
          items:
            $ref: '#/components/schemas/AdverseMediaAxis'
          title: Axes Scanned
          type: array
        outcome:
          $ref: '#/components/schemas/ScopeOutcome'
        queries:
          items:
            $ref: '#/components/schemas/AdverseMediaQuery'
          title: Queries
          type: array
        target_entity_id:
          exclusiveMinimum: 0
          title: Target Entity Id
          type: integer
      required:
        - target_entity_id
        - outcome
      title: AdverseMediaScope
      type: object
    AdverseMediaSubject:
      additionalProperties: false
      properties:
        display_name:
          minLength: 1
          title: Display Name
          type: string
        document:
          anyOf:
            - type: string
            - type: 'null'
          title: Document
        document_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Type
        entity_id:
          exclusiveMinimum: 0
          title: Entity Id
          type: integer
      required:
        - entity_id
        - display_name
      title: AdverseMediaSubject
      type: object
    AdverseMediaTarget:
      additionalProperties: false
      properties:
        display_name:
          minLength: 1
          title: Display Name
          type: string
        entity_id:
          exclusiveMinimum: 0
          title: Entity Id
          type: integer
        relation:
          $ref: '#/components/schemas/TargetRelation'
      required:
        - entity_id
        - display_name
        - relation
      title: AdverseMediaTarget
      type: object
    AdverseMediaVersionsSummary:
      additionalProperties: false
      properties:
        exposure_rules_version:
          minLength: 1
          title: Exposure Rules Version
          type: string
        prompt_version:
          minLength: 1
          title: Prompt Version
          type: string
        workflow:
          minLength: 1
          title: Workflow
          type: string
      required:
        - workflow
        - prompt_version
        - exposure_rules_version
      title: AdverseMediaVersionsSummary
      type: object
    AnchorMatch:
      additionalProperties: false
      properties:
        expected:
          title: Expected
          type: string
        kind:
          $ref: '#/components/schemas/AnchorKind'
        matched:
          title: Matched
          type: boolean
        observed:
          anyOf:
            - type: string
            - type: 'null'
          title: Observed
        present_in_article:
          default: true
          title: Present In Article
          type: boolean
      required:
        - kind
        - expected
        - matched
      title: AnchorMatch
      type: object
    ExposureGrade:
      enum:
        - not_assessed
        - none_identified
        - low
        - relevant
        - critical
      title: ExposureGrade
      type: string
    FindingAttribution:
      enum:
        - subject
        - network_person
        - network_organization
        - third_party
      title: FindingAttribution
      type: string
    AdverseMediaAxis:
      enum:
        - money_laundering
        - corruption
        - regulatory_sanction
        - insolvency
        - market_conduct
        - tax_and_labor
        - environmental
        - consumer
        - political_exposure
      title: AdverseMediaAxis
      type: string
    Materiality:
      additionalProperties: false
      properties:
        amount:
          anyOf:
            - type: number
            - pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
              type: string
            - type: 'null'
          title: Amount
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
      title: Materiality
      type: object
    FindingNature:
      enum:
        - official_fact
        - third_party_attribution
        - unconfirmed
      title: FindingNature
      type: string
    FindingSource:
      additionalProperties: false
      properties:
        authority_tier:
          $ref: '#/components/schemas/AuthorityTier'
        outlet:
          minLength: 1
          title: Outlet
          type: string
        published_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Published At
        retrieved_at:
          format: date-time
          title: Retrieved At
          type: string
        url:
          minLength: 1
          title: Url
          type: string
      required:
        - url
        - outlet
        - retrieved_at
        - authority_tier
      title: FindingSource
      type: object
    FindingStage:
      enum:
        - allegation
        - established
        - investigation
        - charges_filed
        - first_instance_conviction
        - final_decision
        - closed
      title: FindingStage
      type: string
    ScopeOutcome:
      enum:
        - findings
        - no_findings
        - search_unavailable
      title: ScopeOutcome
      type: string
    AdverseMediaQuery:
      additionalProperties: false
      properties:
        results_count:
          minimum: 0
          title: Results Count
          type: integer
        since:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Since
        text:
          minLength: 1
          title: Text
          type: string
        until:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Until
      required:
        - text
        - results_count
      title: AdverseMediaQuery
      type: object
    TargetRelation:
      enum:
        - subject
        - affiliated_organization
        - ownership_chain
      title: TargetRelation
      type: string
    AnchorKind:
      enum:
        - subject_name
        - city
        - state
        - cnae
        - entry_date
        - network_name
        - email_domain
        - shared_partner
        - document_in_text
        - unique_person_name
        - office_title
      title: AnchorKind
      type: string
    AuthorityTier:
      enum:
        - official
        - established_press
        - other
      title: AuthorityTier
      type: string

````