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

# List files

`GET /v1/files`

## Request

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

Retrieve the completed files for the authenticated team, optionally filtered by purpose.

## Query parameters

- `purpose` 'context' | 'batch'
- `limit` integer: Maximum number of files to return, from 1 to 100. Without it all are returned.
- `cursor` string: The `next_cursor` of the previous page.

## Response `200`

Default Response

- object: The completed files for the authenticated team, newest first.
  - `object` string, required
  - `data` object[], required
    - `id` string, required
    - `object` string, required
    - `created` integer, required
    - `filename` string, required
    - `bytes` integer, required
    - `purpose` string, required
    - `status` string, required
  - `has_more` boolean, required: Whether more files follow this page.
  - `next_cursor` string, nullable, required: Pass as `cursor` to get the next page. Null on the last page.

## Other responses

- `400`: Default Response
- `401`: 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)
