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

# Create a page

> Creates a new page. Maps 'invited' access_type to 'selected_users' in DB. Adds invited users with roles. Automatically adds creator as invited user when access is invited. Broadcasts structure change event.




## OpenAPI

````yaml /openapi/pages.yaml post /pages
openapi: 3.1.0
info:
  title: Connie Pages API
  version: 1.0.0
  description: >
    API for the Pages module â€” a Notion-style hierarchical page/wiki system
    with AI-powered content generation, multi-source syncing, vector search, and
    public/private sharing.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Pages
    description: page lifecycle management (CRUD, folders, favorites)
  - name: Page Articles
    description: Article and content retrieval
  - name: Page Search
    description: Full-text and vector search across pages
  - name: Page Invites
    description: page-specific invitation management
  - name: Page Sharing
    description: Public and shared access endpoints
  - name: Page AI
    description: AI-powered content generation
  - name: Page Attachments
    description: File upload and media management
  - name: Page Bulk
    description: Bulk operations (delete, move)
  - name: Page References
    description: Notion-style page-mention chip management
  - name: Page Comments
    description: Inline (highlight-anchored) comments on page content
  - name: Utilities
    description: Supporting utilities (link preview)
paths:
  /pages:
    post:
      tags:
        - Pages
      summary: Create a page
      description: >
        Creates a new page. Maps 'invited' access_type to 'selected_users' in
        DB. Adds invited users with roles. Automatically adds creator as invited
        user when access is invited. Broadcasts structure change event.
      operationId: createPage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  minLength: 1
                description:
                  type: string
                icon:
                  type: string
                access_type:
                  type: string
                  enum:
                    - everyone
                    - invited
                  default: everyone
                invited_users:
                  type: array
                  items:
                    oneOf:
                      - type: string
                        description: User ID
                      - type: object
                        properties:
                          userId:
                            type: string
                          role:
                            type: string
                            enum:
                              - view
                              - edit
                parent_id:
                  type: string
                  format: uuid
                  nullable: true
                is_folder:
                  type: boolean
                  default: false
      responses:
        '201':
          description: page created
          content:
            application/json:
              schema:
                type: object
                properties:
                  knowledgeBase:
                    $ref: '#/components/schemas/Page'
                    description: >
                      Legacy field name — kept for backwards compatibility while
                      the API completes the rename to `page`.
                  message:
                    type: string
                  warnings:
                    type: array
                    items:
                      type: string
                    nullable: true
components:
  schemas:
    Page:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workspace_id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
          nullable: true
        icon:
          type: string
          nullable: true
        access_type:
          type: string
          enum:
            - everyone
            - invited
        article_count:
          type: integer
        sources_count:
          type: integer
        source_labels:
          type: array
          items:
            type: string
        total_tokens:
          type: integer
        tags:
          type: array
          items:
            type: string
        last_synced_at:
          type: string
          format: date-time
          nullable: true
        created_by:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        is_folder:
          type: boolean
        parent_id:
          type: string
          nullable: true
        is_favorited:
          type: boolean
        children_count:
          type: integer
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.