# Returns all versions of the specified user file.

GET https://api.awork.com/api/v1/users/{userId}/files/{fileId}/versions



<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Request example

```sh
curl -X GET --globoff 'https://api.awork.com/api/v1/users/{userId}/files/{fileId}/versions' \
  -H 'Authorization: Bearer <token>'
```

- path parameter `userId`: string (required). 

- path parameter `fileId`: string (required). 

- query parameter `page`: integer. Page number for pagination

- query parameter `pageSize`: integer. Number of items per page

- query parameter `orderby`: string. The properties to order by

- query parameter `filterby`: string. The filter expression to filter by

## Response 200

OK

application/json

```json
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "fileInfoId": "123e4567-e89b-12d3-a456-426614174000",
    "version": 13,
    "size": 13590,
    "width": 1920,
    "height": 1200,
    "createdOn": "2026-01-15T09:30:00Z",
    "createdBy": "123e4567-e89b-12d3-a456-426614174000",
    "updatedOn": "2026-01-15T09:30:00Z",
    "updatedBy": "123e4567-e89b-12d3-a456-426614174000"
  }
]
```

## Response 401

Unauthorized

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```

## Response 404

Not Found

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```
