Download a file

Download the bytes of a file, exactly as you uploaded them.

GET/files/{file_id}/content

Download the bytes of a file, exactly as you uploaded them.

This is the original file, not the text Olive reads from it. Downloads share the upload budget described under Upload a file. 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/octet-stream

application/json

application/json

application/json

application/json

application/json

application/json

curl https://api.avey.ai/llm/files/file-Cn3MSNn72ENTiiq11Qda4A/content \  -H "Authorization: Bearer $AVEY_API_KEY" \  -o discharge-summary.pdf
"string"