> ## Documentation Index
> Fetch the complete documentation index at: https://docs.artosai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Document Set

> Create a new document set associated to the authenticated user's organization. Creator is automatically added to the users array.

**Field alias**: `workspace_name` is the primary field name; `document_set_name` is also accepted.



## OpenAPI

````yaml /api-reference/openapi-v1.json post /api/v1/document-sets/
openapi: 3.0.0
info:
  title: Artos API
  description: API for document generation, template management, and document organization
  version: 1.0.0
  contact:
    name: Artos Support
    email: internal@artosai.com
servers:
  - url: https://api.artosai.com
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security:
  - bearerAuth: []
paths:
  /api/v1/document-sets/:
    post:
      tags:
        - Document Sets
      summary: Create Document Set
      description: >-
        Create a new document set associated to the authenticated user's
        organization. Creator is automatically added to the users array.


        **Field alias**: `workspace_name` is the primary field name;
        `document_set_name` is also accepted.
      operationId: createDocumentSet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDocumentSetRequest'
            example:
              workspace_name: Q1 CSR Documents
      responses:
        '201':
          description: Document set created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentSetResponse'
              example:
                document_set_id: ds-uuid-001
                document_set_name: Q1 CSR Documents
                organization_id: org-uuid-123
                details: null
                documents: []
                version: 1
        '400':
          description: Authentication failed or missing token
        '500':
          description: Database error during creation
components:
  schemas:
    CreateDocumentSetRequest:
      type: object
      description: Both `workspace_name` (alias) and `document_set_name` are accepted.
      properties:
        workspace_name:
          type: string
          description: 'Name for the new document set (alias: document_set_name)'
      required:
        - workspace_name
    DocumentSetResponse:
      type: object
      properties:
        document_set_id:
          type: string
          description: Auto-generated UUID
        document_set_name:
          type: string
          nullable: true
        organization_id:
          type: string
          nullable: true
        details:
          type: string
          nullable: true
        documents:
          type: array
          items:
            type: string
          nullable: true
        version:
          type: integer
          nullable: true
          description: Document set version
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Token provides organization-scoped access.

````