Skip to main content
GET
/
v2
/
files
List all files
curl --request GET \
  --url https://api.orq.ai/v2/files \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "_id": "<string>",
      "bytes": 123,
      "created": "<string>",
      "file_name": "<string>",
      "purpose": "<string>",
      "workspace_id": "<string>"
    }
  ],
  "has_more": true,
  "object": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer<int64>
default:10
Required range: 1 <= x <= 200
starting_after
string

A cursor for use in pagination. Defines your place in the list for the next page.

ending_before
string

A cursor for use in pagination. Defines your place in the list for the previous page.

Response

200 - application/json

Files retrieved successfully

data
object[] | null
required
has_more
boolean
required
object
string
required