---
title: "Create Ingest Job"
method: POST
path: "/api/kb/ingest/jobs"
tags: ["kb"]
---

# Create Ingest Job

`POST /api/kb/ingest/jobs`

Upload a document and enqueue durable KB ingestion.

## Response `202`

Successful Response

- BackgroundJobResponse
  - `id` string, required
  - `user_id` integer, required
  - `job_type` string, required
  - `queue` string, required
  - `status` string, required
  - `progress` object, nullable
  - `result` object, nullable
  - `error_message` string, nullable
  - `celery_task_id` string, nullable
  - `attempts` integer, required
  - `max_attempts` integer, required
  - `started_at` string, date-time, nullable
  - `finished_at` string, date-time, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
