> ## Documentation Index
> Fetch the complete documentation index at: https://sure-917046f5-docs-cloudflare-tunnel-self-hosting.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 and row statistics.



## OpenAPI

````yaml /openapi.yaml get /api/v1/imports/{id}
openapi: 3.0.3
info:
  title: Sure API
  version: v1
  description: OpenAPI documentation for the Sure API.
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 and row statistics.
      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
    ImportDetail:
      type: object
      required:
        - id
        - type
        - status
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - TransactionImport
            - TradeImport
            - AccountImport
            - MintImport
            - CategoryImport
            - RuleImport
            - 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
        configuration:
          $ref: '#/components/schemas/ImportConfiguration'
        stats:
          $ref: '#/components/schemas/ImportStats'
    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
        qty_col_label:
          type: string
          nullable: true
        ticker_col_label:
          type: string
          nullable: true
        price_col_label:
          type: string
          nullable: true
        entity_type_col_label:
          type: string
          nullable: true
        currency_col_label:
          type: string
          nullable: true
        exchange_operating_mic_col_label:
          type: string
          nullable: true
        date_format:
          type: string
          nullable: true
        number_format:
          type: string
          nullable: true
        signage_convention:
          type: string
          nullable: true
        col_sep:
          type: string
          nullable: true
        amount_type_strategy:
          type: string
          nullable: true
        amount_type_inflow_value:
          type: string
          nullable: true
    ImportStats:
      type: object
      properties:
        rows_count:
          type: integer
          minimum: 0
        valid_rows_count:
          type: integer
          minimum: 0
          nullable: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: X-Api-Key
      in: header
      description: API key for authentication. Generate one from your account settings.

````