Skip to main content
GET
/
v1
/
files
List Files
curl --request GET \
  --url https://api.olostep.com/v1/files \
  --header 'Authorization: Bearer <token>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "created": 123,
      "filename": "<string>",
      "bytes": 123,
      "purpose": "<string>",
      "status": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

purpose
enum<string>

Filter files by purpose. Supported values: 'context' or 'batch'.

Available options:
context,
batch

Response

Successful response with list of files.

object
string

The kind of object. "list" for this endpoint.

data
object[]