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

# Generate Presigned URL for documents upload

This endpoint generates a pre-signed URL **(valid for 5 minutes)** and associated form fields including the file\_type (MIME type)

**⚠️ Important**

* **File size limit: 2MB**
* **Presigned URLs are valid for 5 minutes**


## OpenAPI

````yaml get /generate_presigned_url_no_auth
openapi: 3.0.0
info:
  title: Chatzy AI API
  version: 1.0.0
  description: >-
    Chatzy AI REST API for messaging, contact conversations, and agent
    interactions.
  contact:
    name: Chatzy
    url: https://chatzy.ai
    email: support@chatzy.ai
servers:
  - url: https://vevdoh3hve.execute-api.us-east-1.amazonaws.com/prod
    description: Production Server
security: []
tags:
  - name: Authentication
    description: Authentication to access the API
  - name: Contact Conversations
    description: Get contact conversations
  - name: Conversational AI Agent Interactions
    description: Interact with the conversational AI agent
  - name: Authorized iframe Access
    description: APIs for authorized iframe access
paths:
  /generate_presigned_url_no_auth:
    get:
      tags:
        - Conversational AI Agent Interactions
      summary: Generate Presigned URL for documents upload
      parameters:
        - name: file_type
          in: query
          required: true
          description: >-
            MIME type of the file to be uploaded. Only PDF and image files are
            supported.
          schema:
            type: string
            enum:
              - application/pdf
              - image/png
              - image/jpeg
            example: application/pdf
        - name: public
          in: query
          required: false
          description: Set to 1 if the uploaded file should be publicly available.
          schema:
            type: integer
            enum:
              - 0
              - 1
            example: 1
      responses:
        '200':
          description: Pre-signed URL generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      url:
                        type: object
                        properties:
                          url:
                            type: string
                            description: S3 bucket upload endpoint URL
                            example: >-
                              https://chatzy-kb-store.s3.us-east-1.amazonaws.com/
                          fields:
                            type: object
                            description: Form fields required for uploading the file
                            properties:
                              Content-Type:
                                type: string
                                description: MIME type of the file
                                example: application/pdf
                              bucket:
                                type: string
                                example: chatzy-kb-store
                              X-Amz-Algorithm:
                                type: string
                                example: AWS4-HMAC-SHA256
                              X-Amz-Credential:
                                type: string
                                description: AWS temporary credential string
                              X-Amz-Date:
                                type: string
                                example: 20250821T075218Z
                              X-Amz-Security-Token:
                                type: string
                                description: Temporary session token
                              key:
                                type: string
                                description: S3 object key where the file will be stored
                                example: icons/3fa1d79c-79d5-48b0-abcc-65ab4cd0073a
                              Policy:
                                type: string
                                description: Base64-encoded policy document
                              X-Amz-Signature:
                                type: string
                                description: AWS signature for request validation
                            required:
                              - Content-Type
                              - bucket
                              - X-Amz-Algorithm
                              - X-Amz-Credential
                              - X-Amz-Date
                              - X-Amz-Security-Token
                              - key
                              - Policy
                              - X-Amz-Signature
                        required:
                          - url
                          - fields
                    required:
                      - url
                required:
                  - data

````