---
title: "Create Folder"
method: POST
path: "/api/folders"
tags: ["domains"]
---

# Create Folder

`POST /api/folders`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/folders`
- Auth: none declared

Create a shared folder; the caller becomes admin.

With ``organization_id`` the folder belongs to that organization (TOS-6927):
its owner and tenant are the organization, so its address sits under the
organization's zone. The caller still gets a direct admin row.

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- CreateKBRequest
  - `name` string, required
  - `organization_id` string, uuid, nullable: Optional. The id of an organization you are an owner or admin of. When set, the new folder belongs to that organization instead of your personal account; you still become its admin.

## Response `201`

Successful Response

- LibraryResponse
  - `id` string, uuid, required
  - `name` string, required
  - `my_role` string, required
  - `is_direct_member` boolean
  - `can_administer` boolean
  - `owner_identity_id` string, uuid, nullable
  - `owner_identity_display_name` string, nullable
  - `owner_identity_avatar_url` string, nullable
  - `owner_identity_kind` string, nullable
  - `is_private` boolean
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable
  - `document_count` integer
  - `member_count` integer
  - `last_activity_at` string, date-time, nullable
  - `members_preview` MemberPreviewResponse[]
    - `identity_id` string, uuid, required
    - `display_name` string, required
    - `avatar_url` string, nullable, required
    - `kind` string, required
  - `parent_id` string, uuid, nullable
  - `slug` string, nullable
  - `display_name` string, nullable
  - `path` string, nullable
  - `address` string, nullable
  - `org_identity_id` string, uuid, nullable
  - `org_display_name` string, nullable
  - `owner_org_identity_id` string, uuid, nullable
  - `owner_org_display_name` string, nullable

## Other responses

- `422`: Validation Error

---

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