---
title: "Create Batch Pipeline Documents"
method: POST
path: "/api/v1/pipelines/{pipeline_id}/documents"
tags: ["Pipelines"]
---

# Create Batch Pipeline Documents

`POST /api/v1/pipelines/{pipeline_id}/documents`

Batch create documents for a pipeline.

## Path parameters

- `pipeline_id` string, uuid, required

## Cookies

- `session` string, nullable

## Request body

- CloudDocumentCreate[]
  - `text` string, required
  - `metadata` object, required
  - `excluded_embed_metadata_keys` string[]
  - `excluded_llm_metadata_keys` string[]
  - `page_positions` integer[], nullable — indices in the CloudDocument.text where a new page begins. e.g. Second page starts at index specified by page_positions[1].
  - `id` string, nullable

## Response `200`

Successful Response

- CloudDocument[]
  - `text` string, required
  - `metadata` object, required
  - `excluded_embed_metadata_keys` string[]
  - `excluded_llm_metadata_keys` string[]
  - `page_positions` integer[], nullable — indices in the CloudDocument.text where a new page begins. e.g. Second page starts at index specified by page_positions[1].
  - `id` string, required
  - `status_metadata` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/run-llama/apis/llama-platform.md) · [All operations](https://skmtc.net/run-llama/apis/llama-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/run-llama/llama-platform/versions/b17341164de9/schema)
