---
title: "Uploads a File to the inbox"
method: POST
path: "/Files"
tags: ["Files"]
---

# Uploads a File to the inbox

`POST /Files`

## Headers

- `Idempotency-Key` string

## Response `201`

A successful request

- FileObject
  - `Name` string — File Name
  - `MimeType` string — MimeType of the file (image/png, image/jpeg, application/pdf, etc..)
  - `Size` integer — Numeric value in bytes
  - `CreatedDateUtc` string — Created date in UTC
  - `UpdatedDateUtc` string — Updated date in UTC
  - `User` User
    - `Id` string, uuid, required — Xero identifier
    - `Name` string — Key is Name, but returns Email address of user who created the file
    - `FirstName` string — First name of user
    - `LastName` string — Last name of user
    - `FullName` string — Last name of user
  - `Id` string, uuid — File object's UUID
  - `FolderId` string, uuid — Folder relation object's UUID

## Other responses

- `400` — invalid input, object invalid

## Changes

- **2024-06-18** `bb86098f8245` — 6 breaking, 10 info
  - added the new required `header` request parameter `xero-tenant-id` to all path's operations
  - added the new required request property `body`
  - added the new required request property `filename`
  - added the new required request property `name`
  - …12 more
- **2024-06-18** `d277dd2accff` — 1 breaking, 13 warning, 1 info
  - the response's body type/format changed from `object`/`` to ``/`` for status `201`
  - deleted the `header` request parameter `Idempotency-Key`
  - removed the request property `body`
  - removed the request property `filename`
  - …11 more
- **2024-05-10** `d599b701a104` — 6 breaking, 10 info
  - added the new required `header` request parameter `xero-tenant-id` to all path's operations
  - added the new required request property `body`
  - added the new required request property `filename`
  - added the new required request property `name`
  - …12 more
- **2024-01-31** `fb29d2ec1038` — 1 breaking
  - request body became required

[Change history](https://skmtc.dev/xeroapi/apis/xero-files-api/changes/Files/post.md)

---

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