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

# Complete upload

> Marks the upload `ready` and writes width/height into metadata (used by credit estimates).



## OpenAPI

````yaml POST /uploads/{id}/complete
openapi: 3.1.0
info:
  title: Strand AI Platform API
  version: v1
  description: >-
    REST surface for uploading WSIs, submitting Lattice inference jobs, and
    streaming results. All endpoints require an `Authorization: Bearer
    sk-strand-...` header. Generate keys at `/settings/api-keys`.
servers:
  - url: https://app.strandai.com/api/v1
    description: Production
security:
  - ApiKey: []
paths:
  /uploads/{id}/complete:
    post:
      tags:
        - Uploads
      summary: Finalize a resumable upload
      description: >-
        Marks the upload `ready` and writes width/height into metadata (used by
        credit estimates).
      operationId: completeUpload
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Upload finalized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadComplete'
        '404':
          description: Upload not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UploadComplete:
      type: object
      required:
        - uploadId
        - status
        - widthPx
        - heightPx
      properties:
        uploadId:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - ready
        widthPx:
          type: integer
        heightPx:
          type: integer
        dimensionsSource:
          type: string
          enum:
            - sharp
            - stub
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        required:
          type: integer
          nullable: true
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: sk-strand-XXXXXXXXXXXXXXXXXXXXXXXX

````