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

## Changes

- **2026-06-13** `33e4ba4936ad` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/xorbitsai/apis/xagent/changes/api/kb/ingest/jobs/post.md)

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc.dev/xorbitsai/apis/xagent/revisions/33e4ba4936ad?raw)
