---
title: "Bulk Create Docs"
method: POST
path: "/api/v4/{workspace-slug}/documents/bulk"
---

# Bulk Create Docs

`POST /api/v4/{workspace-slug}/documents/bulk`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/documents/bulk`
- Auth: HTTP bearer

Bulk Create Docs creates multiple Docs, and returns a paginated list of the created Docs.

## Path parameters

- `workspace-slug` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `order_by` 'updated_at' | 'created_at'
- `order_dir` 'desc' | 'asc'
- `filter` 'exclude_archived' | 'include_archived'
- `fields` string

## Request body

- Body1605159
  - `documents` CreateDocParams[], required: Payloads for each Doc to create.
    - `content` string, required: The content of the new Doc.
    - `title` string, required: The title of the new Doc.
    - `content_format` 'markdown' | 'html': Format of the content being sent. Defaults to 'html'. If 'markdown', content will be converted to HTML for storage.
    - `description` string: An optional description for the Doc.

## Response `201`

Resource

- DocEntityListWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `current_items` integer, required: The number of items on the current page.
  - `current_page` integer, required: The number of the current page.
  - `entities` Doc[], required: The entities for this page.
    - `archived` boolean: A true/false boolean indicating if the Doc has been archived.
    - `collections` NestedCollectionSlimList: The Collections the Doc belongs to.
      - `current_items` integer, required
      - `entities` CollectionSlim[], required
        - `entity_type` 'collection:slim', required: The type of this entity.
        - `id` string, uuid, required: The unique ID of the Collection.
        - `name` string, required: The name of the Collection.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `content_html` string, nullable: The Doc content in HTML format. Only present on get-doc when content_format=html.
    - `content_markdown` string, nullable: The Doc content in Markdown format. Only present on get-doc when content_format is omitted or 'markdown'.
    - `created_at` string, date-time: The time/date the Doc was created.
    - `creator` MemberSlim: The Member who created the Doc.
      - `entity_type` 'member:slim', required: The type of this entity.
      - `id` string, uuid, required: The unique ID of the Member.
      - `name` string, required: The name of the Member.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `entity_type` 'doc': The type of this entity.
    - `followers` NestedMemberSlimList: The Members who followers of the Doc.
      - `current_items` integer, required
      - `entities` MemberSlim[], required
        - `entity_type` 'member:slim', required: The type of this entity.
        - `id` string, uuid, required: The unique ID of the Member.
        - `name` string, required: The name of the Member.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `id` string, uuid: The unique ID of the Doc.
    - `title` string: The title of the Doc.
    - `updated_at` string, date-time: The time/date the Doc was last updated.
    - `uri` string: A resolvable URI for the entity.
  - `total_items` integer, required: The number of total items across all pages.
  - `total_pages` integer, required: The total number of pages.
  - `next_page_url` string: A URL to get the next page. Will be absent on the last page.

## Other responses

- `400`: Schema mismatch
- `403`
- `404`: Resource does not exist
- `422`: Unprocessable

---

[API](https://skmtc.dev/shortcut-com/apis/shortcut-api.md) - [All operations](https://skmtc.dev/shortcut-com/apis/shortcut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shortcut-com/apis/shortcut-api/revisions/bf2d8439832f?raw)
