curl --request POST \
--url https://api.orq.ai/v2/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form purpose=retrieval{
"_id": "<string>",
"object_name": "<string>",
"purpose": "retrieval",
"bytes": 123,
"file_name": "<string>",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2025-12-08T10:34:28.651Z"
}Files are used to upload documents that can be used with features like Deployments.
curl --request POST \
--url https://api.orq.ai/v2/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form purpose=retrieval{
"_id": "<string>",
"object_name": "<string>",
"purpose": "retrieval",
"bytes": 123,
"file_name": "<string>",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2025-12-08T10:34:28.651Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
File uploaded successfully
path to the file in the storage
The intended purpose of the uploaded file.
retrieval, knowledge_datasource, batch The id of the resource
The date and time the resource was created
Was this page helpful?