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

# Create Doc

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

## Request

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

Create Doc allows you to create a new Doc in the Workspace.

## Path parameters

- `workspace-slug` string, required

## Query parameters

- `fields` string

## Request body

- Body1605155
  - `content` string, required: The content of the new Doc.
  - `title` string, required: The title of the new Doc.
  - `collection_ids` string[]: The IDs of Collections to add the new Doc to.
  - `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

- DocEntityWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `entity` Doc, required
    - `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.

## 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)
