---
title: "Ingest Document"
method: POST
path: "/api/v1/ingest"
tags: ["ingestion"]
---

# Ingest Document

`POST /api/v1/ingest`

## Request

- Base URL: `https://www.gateco.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://www.gateco.ai/api/v1/ingest`
- Auth: OAuth 2 (password, token URL `/api/auth/login`)

Ingest a single document: chunk, embed, store vectors, register metadata.

## Request body

- IngestDocumentRequest: Request to ingest a single document.
  - `connector_id` string, required
  - `external_resource_id` string, required
  - `text` string, nullable
  - `pre_embedded_chunks` PreEmbeddedChunk[], nullable
    - `text` string, required
    - `vector` number[], required
  - `classification` string, nullable
  - `sensitivity` string, nullable
  - `domain` string, nullable
  - `labels` string[], nullable
  - `metadata` object, nullable
  - `owner_principal_id` string, nullable
  - `idempotency_key` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gateco/apis/gateco-api.md) · [All operations](https://skmtc.dev/gateco/apis/gateco-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gateco/apis/gateco-api/revisions/5debaf204950?raw)
