Retrieve a file

Read a file's details: its name, size and upload time.

GET/files/{file_id}

Read a file's details: its name, size and upload time.

To download the file itself, use GET /files/{file_id}/content. A file that does not exist, or that belongs to another account, answers 404.

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

Path Parameters

file_id*string

The id of an uploaded file, as returned in its id.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl https://api.avey.ai/llm/files/file-Cn3MSNn72ENTiiq11Qda4A \  -H "Authorization: Bearer $AVEY_API_KEY"
{  "id": "file-Cn3MSNn72ENTiiq11Qda4A",  "object": "file",  "bytes": 184320,  "created_at": 1769904000,  "filename": "discharge-summary.pdf",  "purpose": "user_data"}