---
title: "List user files"
method: GET
path: "/v1/files/list"
tags: ["Files"]
---

# List user files

`GET /v1/files/list`

List all files (screenshots, PDFs) associated with the authenticated user

## Query parameters

- `type` 'screenshot' | 'pdf'
- `limit` integer
- `offset` integer, nullable
- `sort_by` 'created_at' | 'filename'
- `order` 'asc' | 'desc'

## Response `200`

Files listed successfully

- object
  - `success` true, required
  - `data` object, required
    - `sqliteStatus` object, required
      - `enabled` boolean, required
      - `available` boolean, required
      - `userId` string, required
    - `files` object[], required
      - `id` string, required
      - `type` 'screenshot' | 'pdf', required
      - `url` string, required
      - `filename` string, required
      - `r2_key` string, required
      - `public_url` string, required
      - `metadata` string, required
      - `created_at` string, required
      - `expires_at` string
    - `totalFiles` number, required
    - `hasMore` boolean, required
  - `creditsCost` number — Credits consumed by this operation
  - `requestId` string, uuid, required — Unique request identifier for tracing
  - `timestamp` string, date-time, required — ISO timestamp when the response was generated

## Other responses

- `401` — Authentication required
- `422` — Validation error
- `500` — Internal server error

---

[API](https://skmtc.net/weblinq/apis/weblinq-api.md) · [All operations](https://skmtc.net/weblinq/apis/weblinq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/weblinq/weblinq-api/revisions/364690cf91b7/schema)
