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

# Create Google Slides FlashDocs Template/Library

> Upload a Google Slides link to create a **template** or **library** within your organization.
        
        - **Template**: Ideal for creating reusable slide formats.
        - **Library**: Suitable for comprehensive collections of slides.
        
        **Processing Time**: Depending on the number of slides, processing may take a few minutes (e.g., 50 slides may take approximately 3 minutes). If upload speed is a concern, please contact us to discuss optimization options.
        
        **Text Box Handling**:
        - `reset_text_boxes=false`: Automatically identifies and captures text placeholders enclosed in brackets (`[`, `]`).
        - `resize_text_boxes=false`: Resizes text boxes to fit the text (only increases heights, does not shrink).



## OpenAPI

````yaml https://api.flashdocs.ai/openapi.json post /v1/documents/google
openapi: 3.1.0
info:
  title: FlashDocs API
  description: API for FlashDocs application
  version: 1.0.0
servers:
  - url: https://api.flashdocs.ai
    description: Production server
security: []
paths:
  /v1/documents/google:
    post:
      tags:
        - FlashDocs Document Configuration
      summary: Create Google Slides FlashDocs Template/Library
      description: >-
        Upload a Google Slides link to create a **template** or **library**
        within your organization.
                
                - **Template**: Ideal for creating reusable slide formats.
                - **Library**: Suitable for comprehensive collections of slides.
                
                **Processing Time**: Depending on the number of slides, processing may take a few minutes (e.g., 50 slides may take approximately 3 minutes). If upload speed is a concern, please contact us to discuss optimization options.
                
                **Text Box Handling**:
                - `reset_text_boxes=false`: Automatically identifies and captures text placeholders enclosed in brackets (`[`, `]`).
                - `resize_text_boxes=false`: Resizes text boxes to fit the text (only increases heights, does not shrink).
      operationId: upload_from_link_v1_documents_google_post
      parameters:
        - name: google_document_link
          in: query
          required: true
          schema:
            type: string
            description: The URL link to the Google Slides document you wish to upload.
            title: Google Document Link
          description: The URL link to the Google Slides document you wish to upload.
          example: >-
            https://docs.google.com/presentation/d/1yoEQEfGy04fIRNGu0HNIzQWOHsXtmQglJHp_EYsY3-w/edit#slide=id.SLIDES_API773836281_0
        - name: document_type
          in: query
          required: false
          schema:
            allOf:
              - $ref: '#/components/schemas/DocumentType'
            description: >-
              Specify the type of document to create. **Possible values**:
              "template", "library".
            default: library
            title: Document Type
          description: >-
            Specify the type of document to create. **Possible values**:
            "template", "library".
          example: library
        - name: name
          in: query
          required: false
          schema:
            type: string
            title: Name
            description: The name to assign to the uploaded presentation.
            default: Presentation Name
          description: The name to assign to the uploaded presentation.
          example: Master Library
        - name: description
          in: query
          required: false
          schema:
            type: string
            title: Description
            description: A brief description of the presentation.
            default: Add presentation description here...
          description: A brief description of the presentation.
          example: For client-facing purposes.
        - name: reset_text_boxes
          in: query
          required: false
          schema:
            type: boolean
            description: |2-

                          Determines how text boxes are handled during upload.
                          - **true**: Converts all text boxes into placeholders.
                          - **false**: Only identifies and captures text enclosed in brackets (`[`, `]`) as placeholders.
                      
            default: false
            title: Reset Text Boxes
          description: |2-

                        Determines how text boxes are handled during upload.
                        - **true**: Converts all text boxes into placeholders.
                        - **false**: Only identifies and captures text enclosed in brackets (`[`, `]`) as placeholders.
                    
          example: false
        - name: resize_text_boxes
          in: query
          required: false
          schema:
            type: boolean
            description: |2-

                          Determines if bounding boxes of text boxes are resized to fit the text.
                          - **true**: Resizes all text boxes to fit the text.
                          - **false**: Keeps the original text box sizes.
                      
            default: false
            title: Resize Text Boxes
          description: |2-

                        Determines if bounding boxes of text boxes are resized to fit the text.
                        - **true**: Resizes all text boxes to fit the text.
                        - **false**: Keeps the original text box sizes.
                    
          example: false
      responses:
        '200':
          description: Document created successfully
          content:
            application/json:
              schema: {}
              example:
                message: Document created successfully
                success: true
                document_id: abc-defghi-1234-5
        '400':
          description: Invalid Input or Sharing Failure
          content:
            application/json:
              example:
                message: >-
                  Google link is not valid. Make sure it matches the pattern:
                  https://docs.google.com/presentation/d/{document_id}
                success: false
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                success: false
                message: 'Try again: <error details>'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    DocumentType:
      type: string
      enum:
        - template
        - library
      title: DocumentType
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: token

````