---
title: "List files"
method: GET
path: "/api/files/"
tags: ["openAiBatch"]
---

# List files

`GET /api/files/`

List files from the upstream OpenAI Files API using the authenticated organization key's OpenAI credentials.

## Query parameters

- `provider_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

List of files.

- OpenAIBatchListFilesResponse200
  - `object` string
  - `data` ApiFilesGetResponsesContentApplicationJsonSchemaDataItems[], required
    - `id` string, required — File ID.
    - `object` string, required
    - `bytes` integer — File size in bytes.
    - `created_at` integer — Unix timestamp.
    - `filename` string
    - `purpose` string
    - `status` string — File status.
    - `status_details` unknown

## Other responses

- `401` — Unauthorized - Missing or invalid authentication

---

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