Skip to main content
GET
/
v2
/
files
/
{file_id}
Retrieve a file
curl --request GET \
  --url https://api.orq.ai/v2/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "_id": "<string>",
  "bytes": 123,
  "created": "<string>",
  "file_name": "<string>",
  "purpose": "<string>",
  "workspace_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

file_id
string
required

The ID of the file

Response

File details retrieved successfully

_id
string
required
bytes
integer<int64>
required
created
string
required
file_name
string
required
purpose
string
required
workspace_id
string
required