---
title: "Batch add documents"
method: POST
path: "/v3/documents/batch"
tags: ["Ingest"]
---

# Batch add documents

`POST /v3/documents/batch`

Add multiple documents in a single request. Each document can have any content type (text, url, file, etc.) and metadata

## Request body

- object
  - `containerTag` string — Optional tag this document should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents.
  - `containerTags` string[] — (DEPRECATED: Use containerTag instead) Optional tags this document should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents.
  - `metadata` object — Optional metadata for the document. This is used to store additional information about the document. You can use this to store any additional information you need about the document. Metadata can be filtered through. Keys must be strings and are case sensitive. Values can be strings, numbers, or booleans. You cannot nest objects.
  - `taskType` 'memory' | 'superrag' — Task type: "memory" (default) for full context layer with SuperRAG built in, "superrag" for managed RAG as a service.
  - `filepath` string — Optional file path for the document (e.g., '/documents/reports/file.pdf'). Used by supermemoryfs to map documents to filesystem paths.
  - `documents` union, required
    - object[]
      - `containerTag` string — Optional tag this document should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents.
      - `containerTags` string[] — (DEPRECATED: Use containerTag instead) Optional tags this document should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents.
      - `content` string, required — The content to extract and process into a document. This can be a URL to a website, a PDF, an image, or a video. Plaintext: Any plaintext format URL: A URL to a website, PDF, image, or video We automatically detect the content type from the url's response format.
      - `customId` string — Optional custom ID of the document. This could be an ID from your database that will uniquely identify this document.
      - `metadata` object — Optional metadata for the document. This is used to store additional information about the document. You can use this to store any additional information you need about the document. Metadata can be filtered through. Keys must be strings and are case sensitive. Values can be strings, numbers, or booleans. You cannot nest objects.
      - `taskType` 'memory' | 'superrag' — Task type: "memory" (default) for full context layer with SuperRAG built in, "superrag" for managed RAG as a service.
      - `filepath` string — Optional file path for the document (e.g., '/documents/reports/file.pdf'). Used by supermemoryfs to map documents to filesystem paths.
    - string[]
  - `content` unknown

## Response `200`

Documents added successfully

- object
  - `results` object[], required — Array of results for each document in the batch
    - `id` string, required — Unique identifier of the document (empty string for failed items)
    - `status` string, required — Status of the document (e.g. 'done', 'queued', 'error')
    - `error` string — Error message when status is 'error'
    - `details` string — Additional error details when status is 'error'
  - `failed` number, required — Count of documents that failed to add
  - `success` number, required — Count of documents successfully added

## Other responses

- `401` — Unauthorized
- `402` — Document token limit reached
- `500` — Internal server error

## Changes

- **2026-04-17** `f09b91ede978` — 2 info
  - added the new optional request property `documents/anyOf[subschema #1]/items/filepath`
  - added the new optional request property `filepath`
- **2026-04-16** `10c98134d240` — 2 info
  - added the new optional request property `documents/anyOf[subschema #1]/items/taskType`
  - added the new optional request property `taskType`
- **2026-04-06** `cb825424a780` — 2 info
  - api tag `Ingest` added
  - api tag `Manage Documents` removed
- **2026-03-18** `8a2f638d2370` — 1 breaking, 3 info
  - the response's body type/format changed from `array`/`` to `object`/`` for status `200`
  - added the required property `failed` to the response with the `200` status
  - added the required property `results` to the response with the `200` status
  - added the required property `success` to the response with the `200` status
- **2026-03-15** `b40318167017` — 1 breaking
  - request body became required

[Full history](https://skmtc.dev/supermemoryai/apis/supermemory-api/changes/v3/documents/batch/post.md)

---

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