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

# Process ingest items

> Enqueue classified ingest items for extraction.

Kick classified items into their default black-hole batches. Same `black_hole` billing as automatic assignment.


## OpenAPI

````yaml POST /api/v2/ingest/items/process/
openapi: 3.1.0
info:
  title: Abacus Docs API
  version: 1.0.0
  description: |
    REST + SSE surface for Abacus Docs on the same host as the web app
    (`https://abacusdocs.com`). Paths are `/api/v2/…`.

    Authenticate with an organisation API key (`sk-abacus-*`) as a Bearer
    token, or an Auth0 access token. Cross-tenant reads return **404**, not
    403. Page-based lists use `?page=` and `?page_size=`.

    Extraction, reprocess, schema tests, and chat turns spend credits.
    See the help centre Credits pages for rates.
  contact:
    name: Abacus Docs
    url: https://abacusdocs.com/contact
servers:
  - url: https://abacusdocs.com
    description: Production (Extract)
security: []
paths:
  /api/v2/ingest/items/process/:
    post:
      tags:
        - v2/ingest
      summary: File matched items into a batch and start processing
      description: >-
        Files every claimed item — which must already be CLASSIFIED and pinned
        to ``struct_slug`` — into a batch and enqueues extraction (CONTRACT
        §2.9). ``mode=new`` creates a fresh batch; ``mode=append_latest`` files
        into the struct's latest batch (falling back to a fresh one when none
        exists). Never mixes schemas in one call. Requires ``ingest:write``.
      operationId: v2_ingest_items_process_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProcessItemsRequestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProcessItemsResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '403':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '426':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '503':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    ProcessItemsRequestRequest:
      type: object
      description: POST /api/v2/ingest/items/process/ body (CONTRACT §2.9).
      properties:
        item_ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 40
          maxItems: 500
        mode:
          $ref: '#/components/schemas/ProcessItemsRequestModeEnum'
        struct_slug:
          type: string
          minLength: 1
          maxLength: 200
      required:
        - item_ids
        - mode
        - struct_slug
    ProcessItemsResponse:
      type: object
      description: 200 body of POST /api/v2/ingest/items/process/.
      properties:
        batch:
          $ref: '#/components/schemas/BatchInfo'
        assigned:
          type: integer
        skipped:
          type: array
          items:
            $ref: '#/components/schemas/SkippedItem'
      required:
        - assigned
        - batch
        - skipped
    ProcessItemsRequestModeEnum:
      enum:
        - new
        - append_latest
      type: string
      description: |-
        * `new` - new
        * `append_latest` - append_latest
    BatchInfo:
      type: object
      description: '``{id, name, web_url}`` — the batch shape shared by §2.8/§2.9.'
      properties:
        id:
          type: integer
          description: 'The integer Batch PK (contract clarification #2).'
        name:
          type: string
        web_url:
          type: string
      required:
        - id
        - name
        - web_url
    SkippedItem:
      type: object
      description: One entry in an ``auto-match``/``process`` ``skipped`` list.
      properties:
        item_id:
          type: string
        reason:
          type: string
      required:
        - item_id
        - reason
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Auth0 access token for a signed-in user. Send `Authorization: Bearer
        <token>`.

        The SPA and desktop agent use this. Prefer an organisation API key for

        server-to-server integrations.

````