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>",
  "object_name": "<string>",
  "purpose": "retrieval",
  "bytes": 123,
  "file_name": "<string>",
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created": "2025-10-30T20:19:21.967Z"
}

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
object_name
string
required

path to the file in the storage

purpose
enum<string>
required

The intended purpose of the uploaded file.

Available options:
retrieval,
knowledge_datasource,
batch
bytes
number
required
file_name
string
required
workspace_id
string<uuid>
required

The id of the resource

created
string<date-time>
default:2025-10-30T20:19:21.967Z

The date and time the resource was created