---
title: "Confirm Upload"
method: GET
path: "/api/v1/files/{file_id_or_hashid}/confirm"
tags: ["files"]
---

# Confirm Upload

`GET /api/v1/files/{file_id_or_hashid}/confirm`

Confirm that a file was successfully uploaded to storage.

Call this endpoint after successfully uploading a file using the presigned URL
from /upload. This will verify the file exists, get the actual file size,
and mark it as completed.

Accepts either integer file_id (e.g., "4") or hashid (e.g., "npl94jxy").

This makes the file available for use in workflows.

## Path parameters

- `file_id_or_hashid` string, required

## Cookies

- `wos-session` string
- `datalab_active_team` string

## Response `200`

Successful Response

- ConfirmUploadResponse — Response after confirming upload.
  - `success` boolean — Whether the confirmation was successful
  - `file_id` integer, required — File ID
  - `reference` string, required — File reference in datalab://file-{id} format
  - `message` string, required — Confirmation message

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/datalab/apis/datalab-api.md) · [All operations](https://skmtc.dev/datalab/apis/datalab-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datalab/datalab-api/revisions/aa9f8ee18efb/schema)
