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

# Scan for unprocessed raw data and queue it for ingestion

> Queue every not-yet-processed raw-data record in a project.

Designed to be called on a schedule. Returns immediately after enqueuing;
parsing and validation happen on the task worker. Safe to call
concurrently — each record is claimed before it is enqueued, so overlapping
runs cannot process the same file twice.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /raw_data/scan
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /raw_data/scan:
    post:
      tags:
        - Raw Data
      summary: Scan for unprocessed raw data and queue it for ingestion
      description: >-
        Queue every not-yet-processed raw-data record in a project.


        Designed to be called on a schedule. Returns immediately after
        enqueuing;

        parsing and validation happen on the task worker. Safe to call

        concurrently — each record is claimed before it is enqueued, so
        overlapping

        runs cannot process the same file twice.
      operationId: scan_raw_data_raw_data_scan_post
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
            description: Project to scan
            title: Project Id
          description: Project to scan
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ScanResponse:
      properties:
        scanned:
          type: integer
          title: Scanned
          description: Pending records examined.
        queued:
          type: integer
          title: Queued
          description: Records enqueued for ingestion.
        raw_data_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Raw Data Ids
          description: The records that were enqueued.
      type: object
      required:
        - scanned
        - queued
      title: ScanResponse
      description: Result of a scan sweep over a project's pending raw-data records.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````