---
title: "Returns all file versions of the specified user file."
method: GET
path: "/users/{userId}/files/{fileId}/versions"
tags: ["userFiles"]
---

# Returns all file versions of the specified user file.

`GET /users/{userId}/files/{fileId}/versions`

Returns all file versions of the specified user file.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `userId` string, uuid, required
- `fileId` string, uuid, required

## Query parameters

- `page` integer
- `pageSize` integer
- `orderby` string
- `filterby` string

## Headers

- `Authorization` string, required

## Response `200`

OK

- FileVersion[]
  - `id` string, uuid — The id of the file version.
  - `fileInfoId` string, uuid — The id of the file this version belongs to.
  - `version` number, double — The version of the file.
  - `size` integer — The size of the file, in bytes.
  - `width` number, double, nullable — The width if this is an image file.
  - `height` number, double, nullable — The height if this is an image file.
  - `createdOn` string, date-time — The date this file version was created.
  - `createdBy` string, uuid — The id of the user who created this file version.
  - `updatedOn` string, date-time — The date this file version was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this file version.

---

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