> ## 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 um processo judicial da análise

> Um processo, delimitado ao snapshot, com as partes vindas da partição serving.



## OpenAPI

````yaml GET /analyses/{analysis_uuid}/legal-cases/{legal_case_id}
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:
  /analyses/{analysis_uuid}/legal-cases/{legal_case_id}:
    get:
      tags:
        - analyses
      summary: Consultar um processo judicial da análise
      description: >-
        Um processo, delimitado ao snapshot, com as partes vindas da partição
        serving.
      operationId: get_analysis_legal_case
      parameters:
        - in: path
          name: analysis_uuid
          required: true
          schema:
            format: uuid
            title: Analysis Uuid
            type: string
        - in: path
          name: legal_case_id
          required: true
          schema:
            exclusiveMinimum: 0
            title: Legal Case Id
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisLegalCaseDetailResponse'
          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: Processo judicial não encontrado.
        '422':
          description: >-
            Corpo da requisição, parâmetro de rota, parâmetro de query ou regra
            de negócio inválidos.
components:
  schemas:
    AnalysisLegalCaseDetailResponse:
      additionalProperties: false
      properties:
        case_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Case Number
        case_status:
          anyOf:
            - $ref: '#/components/schemas/LegalCaseStatus'
            - type: 'null'
        case_type:
          anyOf:
            - $ref: '#/components/schemas/LegalCaseType'
            - type: 'null'
        case_value:
          anyOf:
            - type: number
            - pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
              type: string
            - type: 'null'
          title: Case Value
        classes:
          items:
            $ref: '#/components/schemas/AnalysisLegalCaseCodeEntry'
          title: Classes
          type: array
        court:
          anyOf:
            - $ref: '#/components/schemas/AnalysisLegalCaseCourt'
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        current_grau:
          anyOf:
            - $ref: '#/components/schemas/LegalCaseCurrentGrau'
            - type: 'null'
        filing_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Filing Date
        last_movement_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Last Movement Date
        last_movement_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Movement Name
        legal_case_id:
          title: Legal Case Id
          type: string
        parties:
          items:
            $ref: '#/components/schemas/AnalysisLegalCaseParty'
          title: Parties
          type: array
        role:
          anyOf:
            - $ref: '#/components/schemas/LegalCaseEntityRole'
            - type: 'null'
        role_detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Role Detail
        secrecy_level:
          anyOf:
            - $ref: '#/components/schemas/LegalCaseSecrecyLevel'
            - type: 'null'
        subject_is_party:
          default: true
          description: >-
            Sempre true: a lista só contém processos em que a entidade analisada
            é parte. Mantido por compatibilidade retroativa.
          title: Subject Is Party
          type: boolean
        subjects:
          items:
            $ref: '#/components/schemas/AnalysisLegalCaseCodeEntry'
          title: Subjects
          type: array
      required:
        - legal_case_id
      title: AnalysisLegalCaseDetailResponse
      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
    LegalCaseStatus:
      enum:
        - active
        - closed
        - suspended
        - archived
        - pending
        - under_appeal
        - dismissed
      title: LegalCaseStatus
      type: string
    LegalCaseType:
      enum:
        - judicial
        - criminal
        - civil
        - labor
        - tax
        - electoral
        - administrative_judicial
        - constitutional
        - bankruptcy
        - enforcement
        - appeal
        - investigation
      title: LegalCaseType
      type: string
    AnalysisLegalCaseCodeEntry:
      additionalProperties: false
      properties:
        code:
          title: Code
          type: string
        is_primary:
          default: false
          title: Is Primary
          type: boolean
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      required:
        - code
      title: AnalysisLegalCaseCodeEntry
      type: object
    AnalysisLegalCaseCourt:
      additionalProperties: false
      properties:
        city:
          anyOf:
            - type: string
            - type: 'null'
          title: City
        court_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Court Code
        court_name:
          title: Court Name
          type: string
        id:
          title: Id
          type: integer
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
      required:
        - id
        - court_name
      title: AnalysisLegalCaseCourt
      type: object
    LegalCaseCurrentGrau:
      enum:
        - G1
        - G2
        - JE
        - SUP
      title: LegalCaseCurrentGrau
      type: string
    AnalysisLegalCaseParty:
      additionalProperties: false
      properties:
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        entity_id:
          title: Entity Id
          type: integer
        entity_type:
          anyOf:
            - $ref: '#/components/schemas/EntityType'
            - type: 'null'
        is_subject:
          default: false
          title: Is Subject
          type: boolean
        role:
          anyOf:
            - $ref: '#/components/schemas/LegalCaseEntityRole'
            - type: 'null'
        role_detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Role Detail
      required:
        - entity_id
      title: AnalysisLegalCaseParty
      type: object
    LegalCaseEntityRole:
      enum:
        - plaintiff
        - defendant
        - claimant
        - respondent
        - appellant
        - appellee
        - victim
        - investigated
        - defendant_criminal
        - convicted
        - witness
        - lawyer
        - prosecutor
        - judge
        - court
        - public_agency
        - interested_party
        - third_party
        - expert
        - other
      title: LegalCaseEntityRole
      type: string
    LegalCaseSecrecyLevel:
      enum:
        - public
        - restricted
        - sealed
        - secret
      title: LegalCaseSecrecyLevel
      type: string
    EntityType:
      enum:
        - person
        - organization
        - government_agency
        - financial_institution
        - political_party
        - foreign_entity
        - vessel
        - aircraft
        - notary_office
        - unknown
      title: EntityType
      type: string

````