> ## Documentation Index
> Fetch the complete documentation index at: https://sure-917046f5-mintlify-docs-update-1787365830242.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve an import

> Retrieve detailed information about a specific import, including configuration, row statistics, and SureImport readback verification when available.



## OpenAPI

````yaml /openapi.yaml get /api/v1/imports/{id}
openapi: 3.0.3
info:
  title: Sure API
  version: v1
  description: OpenAPI documentation generated from executable request specs.
servers:
  - url: https://app.sure.am
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
paths:
  /api/v1/imports/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Import ID
        schema:
          type: string
    get:
      tags:
        - Imports
      summary: Retrieve an import
      description: >-
        Retrieve detailed information about a specific import, including
        configuration, row statistics, and SureImport readback verification when
        available.
      responses:
        '200':
          description: import retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportResponse'
        '404':
          description: import not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    ImportResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/ImportDetail'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
          nullable: true
        details:
          oneOf:
            - type: array
              items:
                type: string
            - type: object
          nullable: true
        errors:
          type: array
          items:
            type: string
          nullable: true
          description: >-
            Validation error messages (alternative to details used by trades,
            valuations, etc.)
    ImportDetail:
      type: object
      required:
        - id
        - type
        - status
        - created_at
        - updated_at
        - status_detail
        - configuration
        - stats
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - TransactionImport
            - TradeImport
            - AccountImport
            - MintImport
            - ActualImport
            - YnabImport
            - CategoryImport
            - RuleImport
            - MerchantImport
            - PdfImport
            - QifImport
            - SureImport
        status:
          type: string
          enum:
            - pending
            - complete
            - importing
            - reverting
            - revert_failed
            - failed
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        account_id:
          type: string
          format: uuid
          nullable: true
        error:
          type: string
          nullable: true
        status_detail:
          $ref: '#/components/schemas/ImportStatusDetail'
        configuration:
          $ref: '#/components/schemas/ImportConfiguration'
        stats:
          $ref: '#/components/schemas/ImportStats'
        verification:
          $ref: '#/components/schemas/ImportVerification'
    ImportStatusDetail:
      allOf:
        - $ref: '#/components/schemas/ImportStatusSummary'
        - type: object
          required:
            - cleaned
            - publishable
            - revertable
          properties:
            cleaned:
              type: boolean
            publishable:
              type: boolean
            revertable:
              type: boolean
    ImportConfiguration:
      type: object
      properties:
        date_col_label:
          type: string
          nullable: true
        amount_col_label:
          type: string
          nullable: true
        name_col_label:
          type: string
          nullable: true
        category_col_label:
          type: string
          nullable: true
        tags_col_label:
          type: string
          nullable: true
        notes_col_label:
          type: string
          nullable: true
        account_col_label:
          type: string
          nullable: true
        date_format:
          type: string
          nullable: true
        number_format:
          type: string
          nullable: true
        signage_convention:
          type: string
          nullable: true
    ImportStats:
      type: object
      required:
        - rows_count
        - valid_rows_count
        - invalid_rows_count
        - mappings_count
        - unassigned_mappings_count
      properties:
        rows_count:
          type: integer
          minimum: 0
        valid_rows_count:
          type: integer
          minimum: 0
        invalid_rows_count:
          type: integer
          minimum: 0
        mappings_count:
          type: integer
          minimum: 0
        unassigned_mappings_count:
          type: integer
          minimum: 0
    ImportVerification:
      type: object
      description: SureImport only. Captured at upload and completed after import publish.
      required:
        - expected_record_counts
        - readback
      properties:
        expected_record_counts:
          type: object
          additionalProperties:
            type: integer
        readback:
          $ref: '#/components/schemas/ImportVerificationReadback'
    ImportStatusSummary:
      type: object
      required:
        - uploaded
        - configured
        - terminal
      properties:
        uploaded:
          type: boolean
        configured:
          type: boolean
        terminal:
          type: boolean
    ImportVerificationReadback:
      type: object
      description: >-
        SureImport only. Expected NDJSON counts compared to family-scoped
        database readback after publish.
      properties:
        status:
          type: string
          enum:
            - not_verified
            - matched
            - mismatch
            - failed
            - reverted
        checked_at:
          type: string
          format: date-time
          nullable: true
        expected_record_counts:
          type: object
          additionalProperties:
            type: integer
        before_counts:
          type: object
          additionalProperties:
            type: integer
        after_counts:
          type: object
          additionalProperties:
            type: integer
        actual_delta_counts:
          type: object
          additionalProperties:
            type: integer
        checked_counts:
          type: object
          additionalProperties:
            type: integer
        mismatches:
          type: object
          additionalProperties:
            type: object
            required:
              - expected
              - actual
            properties:
              expected:
                type: integer
              actual:
                type: integer
        error:
          type: string
          nullable: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: X-Api-Key
      in: header
      description: API key for authentication. Generate one from your account settings.

````