---
title: "Get versions of a file"
method: GET
path: "/v1/files/{file_key}/versions"
tags: ["Files"]
---

# Get versions of a file

`GET /v1/files/{file_key}/versions`

This endpoint fetches the version history of a file, allowing you to see the progression of a file over time. You can then use this information to render a specific version of the file, via another endpoint.

## Path parameters

- `file_key` string, required

## Query parameters

- `page_size` number
- `before` number
- `after` number

## Response `200`

Response from the GET /v1/files/{file_key}/versions endpoint.

- object
  - `versions` Version[], required — An array of versions.
    - `id` string, required — Unique identifier for version
    - `created_at` string, date-time, required — The UTC ISO 8601 time at which the version was created
    - `label` string, nullable, required — The label given to the version in the editor
    - `description` string, nullable, required — The description of the version as entered in the editor
    - `user` User, required — A description of a user.
      - `id` string, required — Unique stable id of the user.
      - `handle` string, required — Name of the user.
      - `img_url` string, required — URL link to the user's profile image.
    - `thumbnail_url` string — A URL to a thumbnail image of the file version.
  - `pagination` ResponsePagination, required — If pagination is needed due to the length of the response, identifies the next and previous pages.
    - `prev_page` string — A URL that calls the previous page of the response.
    - `next_page` string — A URL that calls the next page of the response.

## Other responses

- `403` — The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.
- `404` — The requested file or resource was not found.
- `429` — In some cases API requests may be throttled or rate limited. Please wait a while before attempting the request again (typically a minute).
- `500` — An internal server error occurred.

---

[API](https://skmtc.dev/thirdstrandstudio/apis/figma-api.md) · [All operations](https://skmtc.dev/thirdstrandstudio/apis/figma-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thirdstrandstudio/figma-api/revisions/48f84f49653a/schema)
