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

# Fetch an import job's status and counts



## OpenAPI

````yaml https://api.develop.fourdos.dev/openapi/partner.json get /v1/imports/{id}
openapi: 3.1.0
info:
  title: 4D OS Partner API
  version: 0.1.0
  description: >-
    REST API for 4D OS partners. Authenticate with your organization API key:
    `Authorization: Bearer <key>`.


    Requests and responses are JSON with `snake_case` field names. Errors share
    one envelope: `{ "error": { "code", "status", "message", "details"? } }`.


    Mutating endpoints that declare it accept an `Idempotency-Key` header so
    retries are safe.


    Bulk-migrating members? See the [Migrating to 4D
    guide](https://docs.fourdos.dev/walkthroughs/migrate-existing-members) for
    the canonical import schema, a worked example, and the `/v1/imports`
    sequence.
servers: []
security:
  - partnerApiKey: []
tags:
  - name: Users
    description: Create, read, and manage users and their org membership
  - name: Imports
    description: Bulk member import jobs (staging → validate → commit)
  - name: Engagement
    description: Browser event tracking (publishable keys) and tracking-key management
paths:
  /v1/imports/{id}:
    get:
      tags:
        - Imports
      summary: Fetch an import job's status and counts
      operationId: getImportJob
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Import job found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportJobResponse'
        '404':
          description: Import job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ImportJobResponse:
      type: object
      properties:
        id:
          type: string
        organization_id:
          type: string
        created_by_id:
          anyOf:
            - type: string
            - type: 'null'
        source:
          type: string
          enum:
            - console
            - api
        state:
          type: string
          enum:
            - staging
            - validating
            - validated
            - committing
            - completed
            - failed
        mapping: {}
        file_name:
          anyOf:
            - type: string
            - type: 'null'
        declared_total:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        staged_rows:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        processed_rows:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        valid_rows:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        invalid_rows:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        created_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        attached_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        failed_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        expires_at:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - organization_id
        - created_by_id
        - source
        - state
        - mapping
        - file_name
        - declared_total
        - staged_rows
        - processed_rows
        - valid_rows
        - invalid_rows
        - created_count
        - attached_count
        - failed_count
        - expires_at
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            status:
              type: integer
            message:
              type: string
            details:
              type: object
              additionalProperties: true
          required:
            - code
            - status
            - message
      required:
        - error
  securitySchemes:
    partnerApiKey:
      type: http
      scheme: bearer
      description: >-
        Organization API key (`org_…`), sent as `Authorization: Bearer <key>`.
        Keys are scoped to one organization; every request operates within that
        tenant.

````