Get Chat Session Project Files
curl --request GET \
--url https://cloud.onyx.app/api/user/projects/session/{chat_session_id}/files \
--header 'Authorization: Bearer <token>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_accessed_at": "2023-11-07T05:31:56Z",
"file_type": "<string>",
"token_count": 123,
"chunk_count": 123,
"temp_id": "<string>",
"project_id": 123
}
]Projects & Files
Get Chat Session Project Files
Return user files for the project linked to the given chat session.
If the chat session has no project, returns an empty list. Only returns files owned by the current user and not FAILED.
GET
/
user
/
projects
/
session
/
{chat_session_id}
/
files
Get Chat Session Project Files
curl --request GET \
--url https://cloud.onyx.app/api/user/projects/session/{chat_session_id}/files \
--header 'Authorization: Bearer <token>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_accessed_at": "2023-11-07T05:31:56Z",
"file_type": "<string>",
"token_count": 123,
"chunk_count": 123,
"temp_id": "<string>",
"project_id": 123
}
]Documentation Index
Fetch the complete documentation index at: https://docs.onyx.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authorization header with Bearer token
Path Parameters
Response
Successful Response
Available options:
PROCESSING, COMPLETED, FAILED, CANCELED, DELETING Available options:
image, document, plain_text, csv Was this page helpful?
⌘I