# Confirm a file's upload landed

Say the PUT to a file's signed upload URL finished. The server looks in storage before it believes it, and only then is the file real: its record is told, the ask it answers is settled and processing may read it — none of that happens at the declare. Answers 200 with the file and its `landedAt`; a second confirm answers the same. 409 `bytes_missing` when storage holds nothing under it yet, 409 `size_mismatch` with `expected` and `got` when it holds a different number of bytes than declared. Reach for it right after uploading the bytes of POST /v1/files, a record's files route or a replace. A file nobody confirms is found by a sweep within minutes, and given up on after a day.

Access class: `workspace`.

## Endpoint

`POST /v1/files/{id}/landed`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "contentType": "string",
    "createdAt": "2026-01-01T00:00:00Z",
    "documentType": "string",
    "folderId": "",
    "id": "",
    "landedAt": "2026-01-01T00:00:00Z",
    "landingFailed": true,
    "links": [
      {
        "definitionKey": "string",
        "id": "",
        "label": "string",
        "rowId": ""
      }
    ],
    "name": "string",
    "no_advertising": true,
    "periodEnd": "string",
    "periodStart": "string",
    "rowId": "",
    "sizeBytes": 1,
    "source": "string",
    "sourceDetail": "string",
    "source_provider": "string",
    "starred": true,
    "statementStatus": "string",
    "submissionUnavailableReason": "string",
    "uploadedBy": 1
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
