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

# List all files

`GET /files`

Lists all files in workspace. You can specify a limit of objects to be returned in one response, as well as set a *next* or *previous* value to navigate through the object stream. Objects are sorted descendingly by their *created_at* value. Please mind, you can only specify *next* or *previous* at once.

## Query parameters

- `after` string, nullable
- `before` string, nullable
- `limit` integer

## Response `200`

OK

- PAFilePagedDocsExample
  - `url` string
  - `results` PAFileDTO[]
    - `id` string — The ID of the file
    - `name` string — The name of the file
    - `mime_type` string — The MIME type of the file. Allowed types application/pdf, application/rtf, application/msword, application/*, image/jpeg, image/png, image/gif, image/*, audio/mpeg, audio/ogg, audio/webm, audio/aac, audio/*, video/mp4, video/quicktime, video/*
    - `link` PAFileLinkDTO
      - `url` string — The download URL of the file
      - `valid_until` string, date-time
    - `url` string — The URL of the file resource
  - `pagination` Pagination
    - `next_cursor` string, nullable
    - `previous_cursor` string, nullable
    - `next_url` string, nullable
    - `previous_url` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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