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

# Create Folder

> Creates a folder for QR codes or pages. Requires authentication.

## Overview

Creates a new folder for QR codes or pages.

## Request Body

| Field         | Type     | Required | Description                                | Example         |
| :------------ | :------- | :------- | :----------------------------------------- | :-------------- |
| `folder_type` | `string` | Yes      | Folder type. Allowed values: `qr`, `page`. | `qr`            |
| `name`        | `string` | Yes      | Folder name.                               | `Marketing QRs` |

## Example Request

```json theme={null}
{
  "folder_type": "qr",
  "name": "Marketing QRs"
}
```

## Example Response

### ✅ **201 Created**

```json theme={null}
{
  "id": 8,
  "name": "Marketing QRs",
  "created_by": 422,
  "folder_type": "qr",
  "qr_codes_count": 0,
  "created": "2026-03-16T17:57:16.662333+05:30",
  "updated": "2026-03-16T17:57:16.662362+05:30"
}
```

## Use Cases

* **Organization**: Create folders to group QR codes or pages
* **Automation**: Provision folders programmatically for campaigns


## OpenAPI

````yaml POST /folder/
openapi: 3.1.0
info:
  title: Scanova Management API
  description: Management endpoints for tags, trash, and other administrative functions
  version: 1.0.0
servers:
  - url: https://management.scanova.io
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /folder/:
    post:
      tags:
        - Management
      summary: Create Folder
      description: Creates a folder for QR codes or pages. Requires authentication.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - folder_type
                - name
              properties:
                folder_type:
                  type: string
                  description: Folder type
                  enum:
                    - qr
                    - page
                  example: qr
                name:
                  type: string
                  description: Folder name
                  example: Marketing QRs
      responses:
        '201':
          description: Folder created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Folder'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    Folder:
      type: object
      properties:
        id:
          type: integer
          description: Folder ID
          example: 7
        name:
          type: string
          description: Folder name
          example: Marketing QRs
        created_by:
          type: integer
          description: User ID who created the folder
          example: 422
        folder_type:
          type: string
          description: Folder type
          example: qr
        qr_codes_count:
          type: integer
          description: Number of QR codes in the folder
          example: 0
        created:
          type: string
          format: date-time
          description: Creation timestamp
          example: '2026-03-16T17:57:16.662333+05:30'
        updated:
          type: string
          format: date-time
          description: Last update timestamp
          example: '2026-03-16T17:57:16.662362+05:30'
    AuthenticationErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Authentication error message
          example: Invalid token.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Enter your API key directly in the Authorization
        header.

````