List files
List the files you have uploaded, newest first.
GET
/filesList the files you have uploaded, newest first.
The list holds only your own files. Use after with the last_id of a page to get the next one.
Authorization
BearerAuth AuthorizationBearer <token>
Your Avey API key, sent as Authorization: Bearer <key>. This is the header the OpenAI SDKs already send, so pass the key as the client's ordinary api_key and no further configuration is needed.
In: header
Query Parameters
limit?integer
The most items to return on one page, from 1 to 100.
Range
1 <= value <= 100after?string
The last_id of the previous page. Pass it to get the page that follows.
order?string
Sort by creation time. Defaults to desc, which puts the newest first.
Default
"desc"Value in
- "asc"
- "desc"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl https://api.avey.ai/llm/files \ -H "Authorization: Bearer $AVEY_API_KEY"{ "object": "list", "data": [ { "id": "file-Cn3MSNn72ENTiiq11Qda4A", "object": "file", "bytes": 184320, "created_at": 1769904000, "filename": "discharge-summary.pdf", "purpose": "user_data" }, { "id": "file-7kQ2mX9pLr4tVb1zWc8eHd", "object": "file", "bytes": 52736, "created_at": 1769817600, "filename": "ward-protocol.md", "purpose": "user_data" } ], "first_id": "file-Cn3MSNn72ENTiiq11Qda4A", "last_id": "file-7kQ2mX9pLr4tVb1zWc8eHd", "has_more": false}