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

# List recent exports

> Returns the caller's recent exports newest-first (max 100). Each row carries the current status; for `ready` rows the response includes a freshly minted signed `download_url` (valid for 10 minutes).




## OpenAPI

````yaml /openapi.yaml get /exports
openapi: 3.0.0
info:
  title: ConsentFly
  version: 1.1.0
  description: >
    API REST do ConsentFly para gerenciar consentimentos e evidências de
    privacidade em escala. Autentique cada chamada com `Authorization: Bearer
    sk-...` (API Key). Cada requisição bem-sucedida consome **1 unidade** da
    cota mensal do plano. Gere sua API Key em `/dashboard/api-keys`.
  contact: {}
servers:
  - url: https://www.consentfly.com.br/api/v1
    description: Produção
security:
  - ApiKeyAuth: []
tags:
  - name: Consents
    description: Capturar, listar, atualizar e auditar registros de consentimento.
  - name: DSAR
    description: >-
      Direito ao esquecimento por titular e recibo canônico para evidência
      regulatória.
  - name: Exports
    description: >-
      Exportação CSV em streaming síncrono ou via job assíncrono para volumes
      grandes.
paths:
  /exports:
    get:
      tags:
        - Exports
      summary: List recent exports
      description: >
        Returns the caller's recent exports newest-first (max 100). Each row
        carries the current status; for `ready` rows the response includes a
        freshly minted signed `download_url` (valid for 10 minutes).
      parameters:
        - name: limit
          in: query
          description: Page size (default 25, max 100)
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/exports.ExportDTO'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/QuotaExceeded'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    exports.ExportDTO:
      type: object
      description: Job de export de consentimentos (síncrono streamed ou assíncrono).
      properties:
        id:
          type: string
          description: Identificador único do job.
          example: exp_01HK8WD2QXKB4R7N9F1H3P5T0G
        site_id:
          type: string
          format: uuid
          description: UUID do site exportado.
          example: 6b8b4567-327a-4d10-92a5-9e8c4f5a7d12
        format:
          type: string
          description: Formato de saída.
          example: csv
        status:
          type: string
          enum:
            - queued
            - running
            - ready
            - failed
            - expired
            - streamed
          description: Estado atual do job.
          example: ready
        row_count:
          type: integer
          description: Quantidade de linhas exportadas.
          example: 12480
        bytes_written:
          type: integer
          format: int64
          description: Tamanho em bytes do arquivo gerado.
          example: 2458912
        error_message:
          type: string
          description: Preenchido quando `status=failed`.
          example: ''
        requested_at:
          type: string
          format: date-time
          example: '2026-05-24T09:00:00Z'
        completed_at:
          type: string
          format: date-time
          nullable: true
          example: '2026-05-24T09:02:18Z'
        expires_at:
          type: string
          format: date-time
          nullable: true
          description: Quando o link assinado expira (7 dias após `completed_at`).
          example: '2026-05-31T09:02:18Z'
        download_url:
          type: string
          nullable: true
          description: >-
            Presente apenas quando `status=ready`. URL assinada com TTL de 10
            minutos.
          example: >-
            https://www.consentfly.com.br/api/v1/exports/download/eyJhbGciOiJIUzI1NiJ9.abc
    utils.APIErrorResponse:
      type: object
      description: Envelope JSON padrão de erro da API.
      properties:
        error:
          type: string
          description: >-
            Código legível por máquina (ex. `unauthorized`, `quota_exceeded`,
            `plan_required`).
          example: unauthorized
        message:
          type: string
          description: Mensagem legível por humano. Para 5xx é genérica.
          example: Invalid or missing API key
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/utils.APIErrorResponse'
    PaymentRequired:
      description: Plan inactive (payment required)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/utils.APIErrorResponse'
    Forbidden:
      description: Forbidden (feature gate or plan limit)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/utils.APIErrorResponse'
    QuotaExceeded:
      description: Monthly API quota exhausted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/utils.APIErrorResponse'
    InternalError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/utils.APIErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        Autenticação por API Key no formato `Authorization: Bearer sk-...`
        (sempre inclua o prefixo `Bearer`).

        Gere sua chave em `/dashboard/api-keys` após criar a conta e
        verificar o e-mail. A chave é exibida **uma única vez** no momento
        da criação — armazene em variável de ambiente no seu backend.
        Nunca exponha em código client-side.

````