---
title: "GET /admin/files"
method: GET
path: "/admin/files"
tags: ["files"]
---

# GET /admin/files

`GET /admin/files`

Retrieves affiliate files

## Query parameters

- `affiliate_id` string
- `since_id` string
- `created_at_max` string
- `created_at_min` string
- `fields` string[], required

## Response `200`

- object
  - `files` object[]
    - `id` integer — File ID
    - `affiliate_id` number — ID of the affiliate
    - `name` string — File name of the uploaded file (eg. abc.jpg)
    - `title` string — User specified title for this file (eg. Photo of ABC)
    - `description` string — User specified description for this file
    - `type` string — Mime-type of this file (eg. image/jpeg)
    - `size` number — Size of this file in bytes
    - `metadata` object — Any associated metadata. Can be null
      - `width` number — Width of the image
      - `height` number — Height of the image
    - `created_at` string — The date when the file was uploaded

## Other responses

- `403` — Not authenticated

---

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