---
title: "List the files (from an app)"
method: GET
path: "/app-files"
tags: ["Apps"]
---

# List the files (from an app)

`GET /app-files`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/app-files`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://app.hypamoon.com/oauth/authorize`, token URL `https://api.hypamoon.com/oauth/token`, scopes: `data:read`)

For an app's own server code only: the uploaded files, newest first. With the signed user headers forwarded: only that user's files (a user with the admin role, the first of auth.roles, gets everyone's with all=true). Without them (the app itself, for example in a schedule): all files, optionally only those of one user.

## Query parameters

- `user_id` string, uuid
- `limit` integer
- `all` boolean

## Response `200`

The files.

- object
  - `data` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `content_type` string, required
    - `bytes` integer, required
    - `status` 'pending' | 'ready', required: pending: the upload link was made but nothing arrived yet.
    - `user_id` string, uuid, nullable, required: The signed-in person the file belongs to (the app forwarded their signed headers), or null for a file of the app itself.
    - `created_at` string, required

## Other responses

- `401`: Unauthorized: unauthorized, missing_api_key, invalid_api_key, api_key_revoked, project_deleted.
- `403`: Forbidden: project_not_enabled, key_mode_mismatch, missing_scope, verification_required, forbidden.
- `422`: Unprocessable Content: validation_failed.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.
- `503`: Service Unavailable: service_unavailable.

---

[API](https://skmtc.dev/hypamoon/apis/hypamoon-api.md) · [All operations](https://skmtc.dev/hypamoon/apis/hypamoon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypamoon/apis/hypamoon-api/revisions/9f0b90004c06?raw)
