# Generate a presigned URL for uploading a file **POST** `/v1/files/upload/presigned-url` **Operation ID**: `generatePresignedUrl` **Summary**: Generate a presigned URL for uploading a file Generates a presigned URL that allows the client to upload a file directly. The file will be automatically deleted after 24 hours. ## Tags - Files ## Parameters - **fileSizeBytes** (required) - query - Type: integer - **format** (required) - query - File format. Valid values: json, plaintext - Type: enum: `json`, `plaintext` ## Responses ### 200 Presigned URL generated successfully - **Content-Type**: `application/json` / `PresignedUploadUrlResponse` ### 400 Invalid parameters (file too large, unsupported format, etc.) ### 401 Unauthorized