---
title: "Retrieves files"
method: GET
path: "/Files"
tags: ["Files"]
---

# Retrieves files

`GET /Files`

## Query parameters

- `pagesize` integer
- `page` integer
- `sort` 'Name' | 'Size' | 'CreatedDateUTC'
- `direction` 'ASC' | 'DESC'

## Response `200`

search results matching criteria

- Files
  - `TotalCount` integer
  - `Page` integer
  - `PerPage` integer
  - `Items` 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

## Changes

- **2025-06-19** `2448e2eaee64` — 1 info
  - added the new optional `query` request parameter `direction`
- **2024-06-18** `bb86098f8245` — 2 breaking, 4 info
  - added the new required `header` request parameter `xero-tenant-id` to all path's operations
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - added the optional property `Items` to the response with the `200` status
  - added the optional property `Page` to the response with the `200` status
  - …2 more
- **2024-06-18** `d277dd2accff` — 1 breaking, 4 warning
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `Items` from the response with the `200` status
  - removed the optional property `Page` from the response with the `200` status
  - removed the optional property `PerPage` from the response with the `200` status
  - …1 more
- **2024-05-10** `d599b701a104` — 2 breaking, 4 info
  - added the new required `header` request parameter `xero-tenant-id` to all path's operations
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - added the optional property `Items` to the response with the `200` status
  - added the optional property `Page` to the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/xeroapi/apis/xero-files-api/changes/Files/get.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)
