---
title: "Ingest Document"
method: POST
path: "/v1/documents"
---

# Ingest Document

`POST /v1/documents`

## Request body

- DocumentRequest
  - `version` integer
  - `id` string, required
  - `sourceId` string, uuid, required
  - `createdAt` union
    - string
    - integer
    - number
  - `updatedAt` union
    - string
    - integer
    - number
  - `public` boolean
  - `ownerEmails` string[]
  - `displayName` string, nullable
  - `url` string, nullable
  - `content` string, nullable
  - `filename` string, nullable
  - `contentType` string
  - `author` Person
    - `version` integer
    - `id` string, nullable
    - `name` string, nullable
    - `email` string, nullable

## Response `201`

Successful Response

- RecordResponse
  - `status` 'created' | 'updated', required
  - `recordId` string, required
  - `id` string, required
  - `sourceId` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/sybill/apis/sybill-api.md) · [All operations](https://skmtc.dev/sybill/apis/sybill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sybill/sybill-api/revisions/f133fe4cb7f2/schema)
