---
title: "Get a file"
method: GET
path: "/v1/files/{fileId}"
tags: ["files"]
---

# Get a file

`GET /v1/files/{fileId}`

## Request

- Base URL: `https://api.olostep.com`
- URL: `https://api.olostep.com/v1/files/{fileId}`
- Auth: HTTP bearer

Retrieve the metadata for a previously created file by id.

## Path parameters

- `fileId` string, required

## Response `200`

Default Response

- object: A file resource.
  - `id` string, required
  - `object` string, required
  - `created` integer, required
  - `filename` string, required
  - `bytes` integer, required
  - `purpose` string, required
  - `status` string, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `404`: Default Response
- `502`: Default Response

---

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