---
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

---

[API](https://skmtc.net/xeroapi/apis/xero-files-api.md) · [All operations](https://skmtc.net/xeroapi/apis/xero-files-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xeroapi/xero-files-api/versions/64c08f9a8548/schema)
