Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.rav.chat/v1/files \ --header 'Authorization: Bearer <token>'
import requestsurl = "https://api.rav.chat/v1/files"headers = {"Authorization": "Bearer <token>"}response = requests.get(url, headers=headers)print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};fetch('https://api.rav.chat/v1/files', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "object": "list", "data": [ { "id": "file-rav-0f8ff0ae", "object": "file", "bytes": 4812, "created_at": 1720512000, "filename": "summary.md", "purpose": "assistants_output", "status": "processed", "project_id": "<string>", "workspace_id": "<string>", "path": "summary.md", "session_id": "<string>" } ], "first_id": "<string>", "last_id": "<string>", "has_more": true }
{ "error": { "message": "Invalid API key", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" }}
{ "error": { "message": "Missing API key scope", "type": "permission_error", "param": null, "code": "missing_scope" }}
List files visible to your key, optionally filtered by project. Requires files:read.
files:read
A RavChat API key: Authorization: Bearer sk-rav-...
Authorization: Bearer sk-rav-...
Restrict to one project.
A list of file objects.
"list"
Show child attributes