---
title: "Returns information about a file."
method: GET
path: "/openai/v1/files/{file_id}"
tags: ["Files"]
---

# Returns information about a file.

`GET /openai/v1/files/{file_id}`

## Path parameters

- `file_id` string, required

## Response `200`

OK

- File — The `File` object represents a document that has been uploaded.
  - `id` string — The file identifier, which can be referenced in the API endpoints.
  - `bytes` integer — The size of the file, in bytes.
  - `created_at` integer — The Unix timestamp (in seconds) for when the file was created.
  - `filename` string — The name of the file.
  - `object` 'file' — The object type, which is always `file`.
  - `purpose` 'batch' | 'batch_output' — The intended purpose of the file. Supported values are `batch`, and `batch_output`.

## Changes

- **2025-01-29** `c5b2589925cd` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/groq/apis/groqcloud-api/changes/openai/v1/files/:file_id/get.md)

---

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