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

# Requeue Ingest Jobs

> Requeue ingestion jobs for documents stuck in processing or marked as failed.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml post /ingest/requeue
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /ingest/requeue:
    post:
      tags:
        - Ingestion
      summary: Requeue Ingest Jobs
      description: >-
        Requeue ingestion jobs for documents stuck in processing or marked as
        failed.
      operationId: requeue_ingest_jobs_ingest_requeue_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequeueIngestionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequeueIngestionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Morphik from 'morphik';

            const client = new Morphik({
              apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.ingest.requeue();

            console.log(response.results);
        - lang: cURL
          source: |-
            curl https://api.morphik.ai/ingest/requeue \
                -H 'Content-Type: application/json' \
                -H "Authorization: Bearer $MORPHIK_API_KEY" \
                -d '{}'
components:
  schemas:
    RequeueIngestionRequest:
      properties:
        jobs:
          items:
            $ref: '#/components/schemas/RequeueIngestionJob'
          type: array
          title: Jobs
          description: Collection of jobs to requeue, each with optional ColPali override.
        include_all:
          type: boolean
          title: Include All
          description: >-
            When true, requeue every accessible document whose status matches
            `statuses` (defaults to processing/failed).
          default: false
        statuses:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Statuses
          description: >-
            Processing statuses to include when `include_all` is true. Defaults
            to ['processing', 'failed'].
        limit:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Limit
          description: >-
            Maximum number of documents to auto-select from the provided
            statuses when include_all is true.
      type: object
      title: RequeueIngestionRequest
      description: Request payload for requeueing ingestion jobs.
    RequeueIngestionResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/RequeueIngestionResult'
          type: array
          title: Results
          description: Per-document outcomes
      type: object
      required:
        - results
      title: RequeueIngestionResponse
      description: Response payload for requeueing ingestion jobs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RequeueIngestionJob:
      properties:
        external_id:
          type: string
          title: External Id
          description: External identifier of the document to requeue
        use_colpali:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Use Colpali
          description: >-
            When provided, uses Morphik's finetuned ColPali style embeddings
            (recommended to be True for high quality retrieval).
      type: object
      required:
        - external_id
      title: RequeueIngestionJob
      description: Job descriptor for requeuing an ingestion task.
    RequeueIngestionResult:
      properties:
        external_id:
          type: string
          title: External Id
          description: Document external identifier
        status:
          type: string
          title: Status
          description: Outcome status for this job
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Optional human-readable message describing the outcome
      type: object
      required:
        - external_id
        - status
      title: RequeueIngestionResult
      description: Result information for an individual requeued ingestion job.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````