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

# Page a job's per-row outcomes, optionally filtered by state



## OpenAPI

````yaml https://api.develop.fourdos.dev/openapi/partner.json get /v1/imports/{id}/rows
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}/rows:
    get:
      tags:
        - Imports
      summary: Page a job's per-row outcomes, optionally filtered by state
      operationId: listImportRows
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: state
          in: query
          required: false
          schema:
            type: string
            enum:
              - staged
              - valid
              - invalid
              - created
              - attached
              - failed
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
      responses:
        '200':
          description: Rows page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportRowPageResponse'
        '404':
          description: Caller may not manage imports for this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid `state` filter, `cursor`, or `limit`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ImportRowPageResponse:
      type: object
      properties:
        rows:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              job_id:
                type: string
              organization_id:
                type: string
              row_number:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              payload: {}
              state:
                type: string
                enum:
                  - staged
                  - valid
                  - invalid
                  - created
                  - attached
                  - failed
              error_code:
                anyOf:
                  - type: string
                  - type: 'null'
              error_message:
                anyOf:
                  - type: string
                  - type: 'null'
              user_id:
                anyOf:
                  - type: string
                  - type: 'null'
            required:
              - id
              - job_id
              - organization_id
              - row_number
              - payload
              - state
              - error_code
              - error_message
              - user_id
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - rows
        - next_cursor
    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.

````