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

# Export subject data (admin)

> Returns the LGPD access/portability export for one data subject under the resolved institution: every matching judicial order decrypted in full plus the linked file metadata. The CPF/CNPJ is tokenized server-side and never logged; the cleartext export lives only in the response body. The institution is derived from the validated request identity.



## OpenAPI

````yaml en/openapi/v3-current/sisbajud.yaml get /v1/admin/lgpd/subject-data
openapi: 3.0.3
info:
  title: Lerian SISBAJUD API
  description: >-
    API for Lerian SISBAJUD — the participant-side rail that integrates the
    institution with Banco Central do Brasil's SISBAJUD (Sistema de Busca de
    Ativos do Poder Judiciário) system for judicial asset blocking and
    unblocking. It covers judicial-order administration, remittance and return
    file management, reconciliation, SLA monitoring, LGPD data-subject requests,
    and per-institution configuration and connector credentials.
  version: v1.0.0
servers:
  - url: https://sisbajud.sandbox.lerian.net
security: []
tags:
  - name: Admin
    description: >-
      Administrative operations over judicial orders: listing and detail,
      failed-order reprocessing, remittance and return file access,
      reconciliation runs and status, SLA-risk monitoring, processing
      statistics, audit-trail verification, cross-organization subject
      summaries, and LGPD data-subject requests and justifications.
  - name: Institution
    description: >-
      Per-institution configuration and connector credentials: configuration
      upsert with tokenization-keyset provisioning, safe configuration read, and
      outbound connector credential registration and rotation.
paths:
  /v1/admin/lgpd/subject-data:
    get:
      tags:
        - Admin
      summary: Export subject data (admin)
      description: >-
        Returns the LGPD access/portability export for one data subject under
        the resolved institution: every matching judicial order decrypted in
        full plus the linked file metadata. The CPF/CNPJ is tokenized
        server-side and never logged; the cleartext export lives only in the
        response body. The institution is derived from the validated request
        identity.
      parameters:
        - description: Subject CPF/CNPJ (tokenized server-side; never logged)
          in: query
          name: cpf_cnpj
          required: true
          schema:
            type: string
        - description: 'Subject document type: cpf | cnpj (default inferred from length)'
          in: query
          name: doc_type
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/query.SubjectExport'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    query.SubjectExport:
      properties:
        files:
          items:
            $ref: '#/components/schemas/query.SubjectFileRef'
          type: array
        generated_at:
          type: string
        orders:
          items:
            $ref: '#/components/schemas/query.OrderDetail'
          type: array
      type: object
    http.AdminErrorResponse:
      properties:
        code:
          type: string
        details:
          additionalProperties: {}
          type: object
        message:
          type: string
        title:
          type: string
      type: object
    query.SubjectFileRef:
      properties:
        created_at:
          type: string
        file_name:
          type: string
        file_type:
          type: string
        generation_date:
          type: string
        id:
          type: string
        kind:
          type: string
        status:
          type: string
        transmission_date:
          type: string
        updated_at:
          type: string
      type: object
    query.OrderDetail:
      properties:
        chave_registro:
          type: string
        codigo_resposta:
          type: string
        connector_type:
          type: string
        cpf_cnpj:
          description: >-
            Decrypted CRITICO fields. The query layer returns them in clear; the
            admin

            HTTP layer masks each one (replacing the value with a fixed
            redaction marker)

            unless the caller is authorized for cleartext access, so over the
            wire these

            may be cleartext OR masked depending on the caller's role.
          type: string
        created_at:
          type: string
        data_hora_protocolo:
          type: string
        escopo_ordem:
          type: string
        id:
          type: string
        juiz_solicitante:
          type: string
        motivo_negativa:
          type: string
        numero_processo:
          type: string
        ordem_bloqueio_permanente:
          type: boolean
        retry_count:
          type: integer
        sla_deadline:
          type: string
        status:
          type: string
        tipo_ordem:
          type: string
        updated_at:
          type: string
        valor_bloqueado:
          type: string
        valor_bloqueio_minimo:
          type: string
        valor_desbloqueado:
          type: string
        valor_remanescente:
          type: string
        valor_solicitado:
          type: string
        valor_transferido:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer token authentication (format: "Bearer {token}")'
      in: header
      name: Authorization
      type: apiKey

````