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

# Mint signed Transloadit assembly parameters for a resumable direct upload



## OpenAPI

````yaml /openapi.json post /api/v1/attachments/upload-params
openapi: 3.1.0
info:
  title: VyomFlow API
  version: 1.0.0
  description: >-
    The versioned public REST surface (`/api/public/v1/*`, bearer API-key auth)
    plus the app's own internal `/api/v1/*` surface (Clerk session-token auth),
    generated directly from the same Zod contracts the Route Handlers validate
    against — never a hand-maintained duplicate. The MCP endpoint (`/api/mcp`)
    is a separate streamable-HTTP JSON-RPC transport, not expressible here — see
    the MCP guide.
servers:
  - url: https://api.vyomflow.co.in
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
paths:
  /api/v1/attachments/upload-params:
    post:
      tags:
        - Attachments
      summary: >-
        Mint signed Transloadit assembly parameters for a resumable direct
        upload
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                chatId:
                  type: string
                  minLength: 1
                files:
                  type: array
                  items:
                    type: object
                    properties:
                      fileName:
                        type: string
                        minLength: 1
                        maxLength: 255
                      mimeType:
                        type: string
                        enum:
                          - image/png
                          - image/jpeg
                          - image/webp
                          - image/gif
                          - video/mp4
                          - video/webm
                          - video/quicktime
                          - audio/mpeg
                          - audio/wav
                          - audio/mp4
                          - audio/ogg
                      byteSize:
                        type: integer
                        exclusiveMinimum: 0
                        maximum: 524288000
                    required:
                      - fileName
                      - mimeType
                      - byteSize
                  minItems: 1
                  maxItems: 10
              required:
                - files
      responses:
        '201':
          description: Signed upload parameters, one set per requested file.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestUploadParamsResponse'
        '400':
          description: File count/size/MIME type over the configured limits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - ClerkBearer: []
components:
  schemas:
    RequestUploadParamsResponse:
      type: object
      properties:
        uploads:
          type: array
          items:
            type: object
            properties:
              attachmentId:
                type: string
              params:
                type: string
              signature:
                type: string
            required:
              - attachmentId
              - params
              - signature
      required:
        - uploads
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    ClerkBearer:
      type: http
      scheme: bearer
      description: >-
        Clerk session token, `Authorization: Bearer <token>` — the first-party
        browser app's own auth. Used only by this internal `/api/v1/*` surface,
        never by `/api/public/v1/*`.

````