---
title: "Submit a file to a collect session"
method: POST
path: "/collect/sessions/{token}/submit/file"
tags: ["collect.sessions"]
---

# Submit a file to a collect session

`POST /collect/sessions/{token}/submit/file`

Uploads a file submission for a collect item via a public token.

## Path parameters

- `token` string, required — The session token

## Response `201`

File submitted successfully

- CollectFileSubmission
  - `id` string, uuid, required — The ID of the submission
  - `status` string, required — The status of the submission
  - `fileName` string, nullable, required — The name of the uploaded file
  - `fileSize` number, nullable, required — The size of the uploaded file in bytes
  - `fileMimeType` string, nullable, required — The MIME type of the uploaded file
  - `collectItemId` string, uuid, required — The ID of the collect item
  - `createdAt` string, date-time, required — The date and time the submission was created

## Other responses

- `410` — Token has expired
- `422` — The validation error(s)
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/steuerboard/apis/steuerboard-api.md) · [All operations](https://skmtc.net/steuerboard/apis/steuerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steuerboard/steuerboard-api/versions/9170dd572b31/schema)
