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

# Listar tarefas de importação de um contexto

> Use este endpoint para recuperar todas as tarefas de importação de um contexto de conciliação específico. É possível ordenar os resultados por diversos campos. A resposta utiliza paginação por cursor.



## OpenAPI

````yaml pt/openapi/v3-current/matcher.yaml get /v1/imports/contexts/{contextId}/jobs
openapi: 3.1.0
info:
  title: Matcher APIs
  description: >-
    Referência completa de API para o motor de conciliação Matcher, que fornece
    conciliação automática de transações entre o Midaz Ledger e sistemas
    externos.
  version: 4.1.0
  license:
    name: Lerian Studio General License
servers:
  - url: https://matcher.sandbox.lerian.net
security: []
paths:
  /v1/imports/contexts/{contextId}/jobs:
    get:
      tags:
        - Ingestion
      summary: Listar tarefas de importação de um contexto
      description: >-
        Use este endpoint para recuperar todas as tarefas de importação de um
        contexto de conciliação específico. É possível ordenar os resultados por
        diversos campos. A resposta utiliza paginação por cursor.
      operationId: listIngestionJobs
      parameters:
        - description: A unique identifier for tracing the request across services.
          in: header
          name: X-Request-Id
          schema:
            type: string
        - description: The unique identifier of the reconciliation context.
          in: path
          name: contextId
          required: true
          schema:
            type: string
        - description: The maximum number of items to include in the response.
          in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
        - description: The cursor value for retrieving the next page of results.
          in: query
          name: cursor
          schema:
            type: string
        - description: The order used to sort the results.
          in: query
          name: sort_order
          schema:
            type: string
            enum:
              - asc
              - desc
        - description: The field used to sort the results.
          in: query
          name: sort_by
          schema:
            type: string
            enum:
              - id
              - created_at
              - started_at
              - completed_at
              - status
      responses:
        '200':
          description: >-
            Indica que a requisição foi bem-sucedida e a resposta contém os
            dados esperados.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListJobsResponse'
        '400':
          description: A requisição contém parâmetros ou payload inválidos.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: A requisição não contém credenciais de autenticação válidas.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Você não tem permissão para acessar este recurso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Ocorreu um erro inesperado no servidor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ListJobsResponse:
      description: Lista de tarefas de importação com paginação por cursor
      properties:
        hasMore:
          example: true
          type: boolean
        items:
          description: Lista de tarefas de importação
          items:
            $ref: '#/components/schemas/JobResponse'
          type: array
        limit:
          example: 20
          maximum: 200
          minimum: 1
          type: integer
        nextCursor:
          example: eyJpZCI6IjEyMyJ9
          type: string
        prevCursor:
          example: eyJpZCI6IjEyMiJ9
          type: string
      type: object
    ErrorResponse:
      description: Resposta de erro padrão retornada por todos os endpoints da API
      type: object
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: Código de erro de aplicação estável.
          example: MTCH-0001
        title:
          type: string
          description: Título de erro legível por humanos.
          example: Bad Request
        message:
          type: string
          description: Mensagem de erro legível com detalhes.
          example: context not found
        error:
          type: string
          description: Descontinuado. Mensagem de erro para compatibilidade retroativa.
          deprecated: true
        details:
          description: Contexto adicional do erro como pares chave-valor
          additionalProperties: {}
          type: object
    JobResponse:
      description: Detalhes da tarefa de importação
      properties:
        completedAt:
          description: Quando a tarefa foi concluída no formato RFC3339 (se concluída)
          example: '2025-01-15T10:35:00.000Z'
          type: string
        contextId:
          description: ID do contexto ao qual esta tarefa pertence
          example: 019c96a0-10a0-72d2-9fb0-2b7de8093182
          type: string
        createdAt:
          description: Timestamp de criação no formato RFC3339
          example: '2025-01-15T10:30:00.000Z'
          type: string
        failedRows:
          description: Número de linhas que falharam no processamento
          example: 5
          minimum: 0
          type: integer
        fileName:
          description: Nome original do arquivo
          example: transactions_2024.csv
          type: string
        id:
          description: Identificador único da tarefa
          example: 019c96a0-10ce-75fc-a273-dc799079a99c
          type: string
        sourceId:
          description: ID da fonte na qual esta tarefa importa dados
          example: 019c96a0-108c-7a74-8e31-3789daffe1ed
          type: string
        startedAt:
          description: >-
            Quando a tarefa foi iniciada no formato RFC3339 (null para tarefas
            em fila)
          example: '2025-01-15T10:30:00.000Z'
          type: string
        status:
          description: Status atual da tarefa
          enum:
            - QUEUED
            - PROCESSING
            - COMPLETED
            - FAILED
          example: PROCESSING
          type: string
        totalRows:
          description: Número total de linhas no arquivo
          example: 1000
          minimum: 0
          type: integer
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Autenticação por Bearer token (formato: "Bearer {token}")'

````