# List parts of an in-progress multipart storage upload

Returns the parts of an in-progress multipart upload that S3 has confirmed, plus fresh presigned upload URLs for every part, so a client can resume an interrupted upload instead of restarting it. Only uploads owned by the authenticated user can be listed.

URL: /reference/storage/listStorageUploadParts

## POST /v2/storage/uploads/parts

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "List parts of an in-progress multipart storage upload",
    "description": "Lingopal v2 public API for text translation, storage uploads, registered jobs, job workflows, and job outputs.",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.lingopal.ai"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    }
  ],
  "paths": {
    "/v2/storage/uploads/parts": {
      "post": {
        "tags": [
          "Storage"
        ],
        "summary": "List parts of an in-progress multipart storage upload",
        "description": "Returns the parts of an in-progress multipart upload that S3 has confirmed, plus fresh presigned upload URLs for every part, so a client can resume an interrupted upload instead of restarting it. Only uploads owned by the authenticated user can be listed.",
        "operationId": "listStorageUploadParts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartsStorageUploadRequest"
              },
              "examples": {
                "listMultipartStorageUploadParts": {
                  "summary": "Resume a multipart source upload",
                  "description": "Look up which parts of an in-progress multipart upload S3 has confirmed and receive fresh presigned URLs for every part. Then register the returned source_url with `/v2/jobs/register` after completing the upload.",
                  "value": {
                    "file_path": "presigned_upload/user_123/source.mp4",
                    "upload_id": "2~example-upload-id",
                    "file_size": 524288000
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Confirmed parts and fresh presigned upload URLs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartsStorageUploadResponse"
                },
                "example": {
                  "parts": [
                    {
                      "part_number": 1,
                      "etag": "\"9b2cf535f27731c974343645a3985328\"",
                      "size": 134217728
                    }
                  ],
                  "upload_urls": [
                    {
                      "part_number": 1,
                      "upload_url": "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4?partNumber=1&X-Amz-Signature=..."
                    },
                    {
                      "part_number": 2,
                      "upload_url": "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4?partNumber=2&X-Amz-Signature=..."
                    }
                  ],
                  "part_size_bytes": 134217728,
                  "source_url": "https://cdn.example.com/presigned_upload/user_123/source.mp4"
                }
              }
            }
          },
          "401": {
            "description": "Invalid authentication token."
          },
          "403": {
            "description": "The authenticated user cannot access this resource."
          },
          "422": {
            "description": "Request validation error."
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Storage",
      "description": "Create and complete presigned storage uploads for source files."
    }
  ],
  "components": {
    "schemas": {
      "PartsStorageUploadRequest": {
        "properties": {
          "file_path": {
            "type": "string",
            "title": "File Path",
            "description": "Storage path returned by `/v2/storage/uploads` for the multipart upload.",
            "examples": [
              "presigned_upload/user_123/source.mp4"
            ]
          },
          "upload_id": {
            "type": "string",
            "title": "Upload Id",
            "description": "Multipart upload ID returned by `/v2/storage/uploads`.",
            "examples": [
              "2~example-upload-id"
            ]
          },
          "file_size": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "File Size",
            "description": "Total source file size in bytes, used to compute the total part count.",
            "examples": [
              524288000
            ]
          }
        },
        "type": "object",
        "required": [
          "file_path",
          "upload_id",
          "file_size"
        ],
        "title": "PartsStorageUploadRequest"
      },
      "PartsStorageUploadResponse": {
        "properties": {
          "parts": {
            "items": {
              "$ref": "#/components/schemas/StorageUploadPartStatus"
            },
            "type": "array",
            "title": "Parts",
            "description": "Parts S3 has confirmed for this upload, ordered by part number."
          },
          "upload_urls": {
            "items": {
              "$ref": "#/components/schemas/UploadPart"
            },
            "type": "array",
            "title": "Upload Urls",
            "description": "Fresh presigned upload URLs for every part of the upload."
          },
          "part_size_bytes": {
            "type": "integer",
            "title": "Part Size Bytes",
            "description": "Byte size clients must use when slicing multipart upload parts.",
            "examples": [
              134217728
            ]
          },
          "source_url": {
            "type": "string",
            "title": "Source Url",
            "description": "Final URL of the uploaded file after upload completion.",
            "examples": [
              "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4"
            ]
          }
        },
        "type": "object",
        "required": [
          "parts",
          "upload_urls",
          "part_size_bytes",
          "source_url"
        ],
        "title": "PartsStorageUploadResponse",
        "examples": [
          {
            "part_size_bytes": 134217728,
            "parts": [
              {
                "etag": "\"9b2cf535f27731c974343645a3985328\"",
                "part_number": 1,
                "size": 134217728
              }
            ],
            "source_url": "https://cdn.example.com/presigned_upload/user_123/source.mp4",
            "upload_urls": [
              {
                "part_number": 1,
                "upload_url": "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4?partNumber=1&X-Amz-Signature=..."
              },
              {
                "part_number": 2,
                "upload_url": "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4?partNumber=2&X-Amz-Signature=..."
              }
            ]
          }
        ]
      },
      "StorageUploadPartStatus": {
        "properties": {
          "part_number": {
            "type": "integer",
            "title": "Part Number",
            "description": "One-based multipart upload part number.",
            "examples": [
              1
            ]
          },
          "etag": {
            "type": "string",
            "title": "Etag",
            "description": "ETag returned by S3 for the uploaded part.",
            "examples": [
              "\"9b2cf535f27731c974343645a3985328\""
            ]
          },
          "size": {
            "type": "integer",
            "title": "Size",
            "description": "Uploaded part size in bytes.",
            "examples": [
              134217728
            ]
          }
        },
        "type": "object",
        "required": [
          "part_number",
          "etag",
          "size"
        ],
        "title": "StorageUploadPartStatus"
      },
      "UploadPart": {
        "properties": {
          "part_number": {
            "type": "integer",
            "title": "Part Number",
            "description": "One-based multipart upload part number.",
            "examples": [
              1
            ]
          },
          "upload_url": {
            "type": "string",
            "title": "Upload Url",
            "description": "Presigned URL used to upload this part with the documented HTTP method.",
            "examples": [
              "https://example-bucket.s3.amazonaws.com/presigned_upload/user/file.mp4?X-Amz-Signature=..."
            ]
          }
        },
        "type": "object",
        "required": [
          "part_number",
          "upload_url"
        ],
        "title": "UploadPart"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  }
}
```
