---
title: "Get all files"
method: GET
path: "/files"
tags: ["files"]
---

# Get all files

`GET /files`

Returns all files for the current account.

## Response `200`

The call was successful.

- File[]
  - `href` string — Endpoint resource reference to a file.
  - `name` string
  - `description` string
  - `type` 'bootstrap' | 'geo-db' | 'handler' | 'microsite' | 'waf-rules'
  - `details` FileArchiveDetails — Details for an archive file.
    - `directory` FileArchiveDirectory[] — Files contained in the archive
      - `path` string — Path of the file relative to its root.
      - `size` number — The size of the file in bytes.
      - `updated` string — An iso8601 formatted timestamp
  - `created_by` string — Reference to the user that created this file.
  - `created` string — An iso8601 formatted timestamp
  - `updated` string — An iso8601 formatted timestamp
  - `current_version` integer — Currently used version of the file.
  - `versions` FileVersion[] — All versions of the file.
    - `file_name` string — The file name of the file.
    - `version` integer — Raw version number for the file.
    - `details` FileArchiveDetails — Details for an archive file.
      - `directory` FileArchiveDirectory[] — Files contained in the archive
        - `path` string — Path of the file relative to its root.
        - `size` number — The size of the file in bytes.
        - `updated` string — An iso8601 formatted timestamp
    - `content_type` string — Type of the content for this version of the file.
    - `label` string — Description for this version of the file.
    - `created` string — An iso8601 formatted timestamp

---

[API](https://skmtc.dev/webscale/apis/webscale-apis.md) · [All operations](https://skmtc.dev/webscale/apis/webscale-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webscale/webscale-apis/revisions/c98d872b50cb/schema)
