---
title: "Get list of files"
method: GET
path: "/service_agents/files"
tags: ["Service Agent"]
---

# Get list of files

`GET /service_agents/files`

Retrieves a paginated list of files associated with the authenticated agent.

## Query parameters

- `page_size` integer
- `page_token` string

## Response `200`

A list of files.

- object
  - `next_page_token` string — Cursor token for the next page of results. Pass this value as the page_token parameter in the next request.
  - `result` StorageManagerFile[]
    - `id` string, uuid — The unique identifier of the file. Returned from the `POST /storage_files` or `GET /storage_files` response.
    - `customer_id` string, uuid — The unique identifier of the customer who owns this file. Returned from the `GET /customers` response.
    - `owner_type` string — Type of the resource owner (e.g., agent).
    - `owner_id` string, uuid — The unique identifier of the resource that owns this file (e.g., an agent or a call). Returned from the corresponding owner resource endpoint.
    - `reference_type` '' | 'normal' | 'recording' — The reference type of the file.
    - `reference_id` string, uuid — The unique identifier of the referenced resource. Returned from the corresponding resource endpoint.
    - `type` '' | 'rag' | 'talk' | 'recording' — The type/category of the file. Indicates the purpose of the uploaded file.
    - `name` string — The name of the file.
    - `detail` string — The details of the file.
    - `filename` string — The filename of the file.
    - `filesize` integer — The size of the file in bytes.
    - `uri_download` string — The URI for downloading the file.
    - `tm_download_expire` string, date-time — Timestamp when the download link expires.
    - `tm_create` string, date-time — The creation timestamp.
    - `tm_update` string, date-time — The last update timestamp.
    - `tm_delete` string, date-time — The deletion timestamp.

## Other responses

- `401` — Authentication required (UNAUTHENTICATED).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/versions/79e779080bcc/schema)
