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

# Auto-match ingest items

> Auto-match scored ingest items into participating schemas.

Claims unmatched/needs-review items the classifier already scored high enough. Auth0 + allowlist. Entitlement is checked **before** the claim so a refusal cannot strand items in RECEIVED.


## OpenAPI

````yaml POST /api/v2/ingest/items/auto-match/
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/auto-match/:
    post:
      tags:
        - v2/ingest
      summary: Queue classification for claimable items
      description: >-
        Enqueues classification for each claimable
        (``UNMATCHED``/``NEEDS_REVIEW``/``CLASSIFIED``) item id (CONTRACT §2.7);
        an empty list is a no-op 200. The callback applies the best slug →
        CLASSIFIED (or rests UNMATCHED) — it never files a batch. Discover
        results via the items feed. Requires ``ingest:write``.
      operationId: v2_ingest_items_auto_match_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoMatchRequestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoMatchResponse'
          description: ''
        '403':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '404':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '426':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    AutoMatchRequestRequest:
      type: object
      description: >-
        POST /api/v2/ingest/items/auto-match/ body (CONTRACT §2.7). Empty list
        is a no-op 200.
      properties:
        item_ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 40
          maxItems: 500
      required:
        - item_ids
    AutoMatchResponse:
      type: object
      description: 200 body of POST /api/v2/ingest/items/auto-match/.
      properties:
        queued:
          type: integer
        skipped:
          type: array
          items:
            $ref: '#/components/schemas/SkippedItem'
      required:
        - queued
        - skipped
    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.

````